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
This commit is contained in:
2026-01-23 09:03:08 -05:00
parent 9fc5d3baea
commit 7628bf20f9
+3
View File
@@ -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