@@ -128,16 +128,16 @@ func (s *Server) initRouter() {
128128
129129 s .router .GET ("/books.json" , s .handleBooksJSON )
130130
131- s .router .GET ("/books" , s .handleBookList )
131+ s .router .GET ("/books" , s .handleBooks )
132132 s .router .GET ("/books/:id" , s .handleBook )
133133
134- s .router .GET ("/authors" , s .handleAuthorList )
134+ s .router .GET ("/authors" , s .handleAuthors )
135135 s .router .GET ("/authors/:id" , s .handleAuthor )
136136
137- s .router .GET ("/series" , s .handleSeriesList )
137+ s .router .GET ("/series" , s .handleSeriess )
138138 s .router .GET ("/series/:id" , s .handleSeries )
139139
140- s .router .GET ("/download" , s .handleDownloadList )
140+ s .router .GET ("/download" , s .handleDownloads )
141141 s .router .GET ("/download/:filename" , s .handleDownload )
142142
143143 s .router .GET ("/static/*filepath" , func (w http.ResponseWriter , req * http.Request , ps httprouter.Params ) {
@@ -147,7 +147,7 @@ func (s *Server) initRouter() {
147147 s .router .ServeFiles ("/covers/*filepath" , http .Dir (s .CoverDir ))
148148}
149149
150- func (s * Server ) handleDownloadList (w http.ResponseWriter , r * http.Request , _ httprouter.Params ) {
150+ func (s * Server ) handleDownloads (w http.ResponseWriter , r * http.Request , _ httprouter.Params ) {
151151 s .booksLock .RLock ()
152152 defer s .booksLock .RUnlock ()
153153
@@ -290,7 +290,7 @@ func (s *Server) handleDownload(w http.ResponseWriter, r *http.Request, p httpro
290290 io .WriteString (w , "Could not find book with id " + bid )
291291}
292292
293- func (s * Server ) handleAuthorList (w http.ResponseWriter , r * http.Request , _ httprouter.Params ) {
293+ func (s * Server ) handleAuthors (w http.ResponseWriter , r * http.Request , _ httprouter.Params ) {
294294 s .booksLock .RLock ()
295295 defer s .booksLock .RUnlock ()
296296
@@ -348,7 +348,7 @@ func (s *Server) handleAuthor(w http.ResponseWriter, r *http.Request, p httprout
348348 })
349349}
350350
351- func (s * Server ) handleSeriesList (w http.ResponseWriter , r * http.Request , _ httprouter.Params ) {
351+ func (s * Server ) handleSeriess (w http.ResponseWriter , r * http.Request , _ httprouter.Params ) {
352352 s .booksLock .RLock ()
353353 defer s .booksLock .RUnlock ()
354354
@@ -410,7 +410,7 @@ func (s *Server) handleSeries(w http.ResponseWriter, r *http.Request, p httprout
410410 })
411411}
412412
413- func (s * Server ) handleBookList (w http.ResponseWriter , r * http.Request , _ httprouter.Params ) {
413+ func (s * Server ) handleBooks (w http.ResponseWriter , r * http.Request , _ httprouter.Params ) {
414414 s .booksLock .RLock ()
415415 defer s .booksLock .RUnlock ()
416416
0 commit comments