add simple / path handler
This commit is contained in:
parent
86e7db59ee
commit
7a264bf0bc
2 changed files with 18 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue