From 2245cca67a03050ed525c35c74aed04868ab8368 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Thu, 19 Mar 2026 11:07:29 -0400 Subject: [PATCH] fix: correct static file routing for dashboard assets Mapped /css, /js, and /img to their respective subdirectories in ./static to resolve 404 errors. --- internal/server/server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/server/server.go b/internal/server/server.go index b4554d8d..fe1988d4 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -77,9 +77,11 @@ func (s *Server) setupRoutes() { s.router.Use(middleware.AuthMiddleware(s.database)) // Static files - s.router.Static("/static", "./static") s.router.StaticFile("/", "./static/index.html") s.router.StaticFile("/favicon.ico", "./static/favicon.ico") + s.router.Static("/css", "./static/css") + s.router.Static("/js", "./static/js") + s.router.Static("/img", "./static/img") // WebSocket s.router.GET("/ws", s.handleWebSocket)