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