Fix static file route to serve at /s/

This commit is contained in:
Jeffrey Paul 2025-12-29 16:39:51 +07:00
parent cc6dee9fd8
commit ee823b6a84

View File

@ -30,8 +30,8 @@ func (s *Server) SetupRoutes() {
s.router.Get("/health", s.handlers.HandleHealthCheck())
// Static files
s.router.Handle("/static/*", http.StripPrefix(
"/static/",
s.router.Handle("/s/*", http.StripPrefix(
"/s/",
http.FileServer(http.FS(static.Static)),
))