add simple / path handler

This commit is contained in:
juancwu 2026-01-05 15:23:42 -05:00
commit 7a264bf0bc
2 changed files with 18 additions and 1 deletions

View file

@ -25,6 +25,9 @@ func SetupRoutes(a *app.App) http.Handler {
sub, _ := fs.Sub(assets.AssetsFS, ".")
mux.Handle("GET /assets/", http.StripPrefix("/assets/", http.FileServer(http.FS(sub))))
// Home
mux.HandleFunc("GET /{$}", home.HomePage)
// Auth pages
authRateLimiter := middleware.RateLimitAuth()