server better organized

This commit is contained in:
2026-01-24 12:41:32 -07:00
parent 7154494016
commit ff231897df
3 changed files with 43 additions and 57 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ func SetupRoutes(
rawEvents *raw_events.Store,
accts *accounts.Store,
etsy *etsy_platform.Platform,
auth *middleware.Auth,
authenticate gin.HandlerFunc,
) {
s := &webpageRouter{
@@ -98,7 +98,7 @@ func SetupRoutes(
}
r.GET("", response.Handler(s.serveTemplate))
r.GET("/*rest", response.Handler(auth.Authenticate()), response.Handler(s.serveTemplate))
r.GET("/*rest", authenticate, response.Handler(s.serveTemplate))
}
// GET /