From 7628bf20f9adc8a376a851d56744b016396f4a43 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 23 Jan 2026 09:03:08 -0500 Subject: [PATCH] feat: update API routes for multiple folder support - Add routes for ebook folder management in auth group - Add routes for scanner operations (scan, start, stop) - Update route handlers to use new multiple folder endpoints - Maintain JWT authentication for protected routes --- backend/cmd/server/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/cmd/server/main.go b/backend/cmd/server/main.go index 834ad35..531016a 100644 --- a/backend/cmd/server/main.go +++ b/backend/cmd/server/main.go @@ -81,6 +81,9 @@ func main() { // Protected routes protected := e.Group("/api", jwtMiddleware) protected.GET("/auth/profile", auth.GetProfile) + protected.POST("/auth/ebook-folders", auth.AddEbookFolder) + protected.GET("/auth/ebook-folders", auth.GetEbookFolders) + protected.DELETE("/auth/ebook-folders/:folderPath", auth.DeleteEbookFolder) protected.GET("/users", auth.ListUsers) // Routes