forked from sneak/upaas
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())
|
s.router.Get("/health", s.handlers.HandleHealthCheck())
|
||||||
|
|
||||||
// Static files
|
// Static files
|
||||||
s.router.Handle("/static/*", http.StripPrefix(
|
s.router.Handle("/s/*", http.StripPrefix(
|
||||||
"/static/",
|
"/s/",
|
||||||
http.FileServer(http.FS(static.Static)),
|
http.FileServer(http.FS(static.Static)),
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user