Rework request context handler

This commit is contained in:
2024-11-03 19:17:10 +01:00
parent dfd9544fba
commit c8cc854fd6
14 changed files with 217 additions and 217 deletions

View File

@@ -14,6 +14,7 @@ import (
"novamd/internal/config"
"novamd/internal/db"
"novamd/internal/filesystem"
"novamd/internal/handlers"
)
func main() {
@@ -74,7 +75,7 @@ func main() {
})
// Handle all other routes with static file server
r.Get("/*", api.NewStaticHandler(cfg.StaticPath).ServeHTTP)
r.Get("/*", handlers.NewStaticHandler(cfg.StaticPath).ServeHTTP)
// Start server
port := os.Getenv("PORT")