Code Warning Fixes

This commit is contained in:
2026-02-28 06:11:07 +00:00
parent 2e94a84054
commit 3e33a1317a
28 changed files with 1317 additions and 452 deletions

View File

@@ -124,6 +124,10 @@ func main() {
auth.Post("/refresh", handlers.RefreshToken)
auth.Post("/logout", middleware.Protected(), handlers.Logout)
// Public avatar/media routes (no auth needed for <img> tags)
api.Get("/avatar/:userId", handlers.ServePublicAvatar)
api.Get("/team-media/:teamId/:imageType", handlers.ServePublicTeamImage)
users := api.Group("/users", middleware.Protected())
users.Get("/me", handlers.GetMe)
users.Put("/me", handlers.UpdateMe)