Fix static file route to serve at /s/
This commit is contained in:
@@ -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)),
|
||||
))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user