feat: add /users/me route

This commit is contained in:
2025-12-04 00:49:59 +00:00
parent 539b15dcb7
commit 1bedafd3de
3 changed files with 34 additions and 2 deletions

View File

@@ -98,6 +98,7 @@ func NewServer(c Config) (*Server, error) {
api := app.Group("/api")
auth.NewHTTPHandler(authService, db, cookieConfig).RegisterRoutes(api)
user.NewHTTPHandler(userService, db, authMiddleware).RegisterRoutes(api)
accountRouter := account.NewHTTPHandler(accountService, authService, db, authMiddleware).RegisterRoutes(api)
upload.NewHTTPHandler(uploadService, db).RegisterRoutes(accountRouter)