mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Compare commits
2 Commits
v0.5.4
...
c11d956ced
| Author | SHA1 | Date | |
|---|---|---|---|
| c11d956ced | |||
| 9a232819a8 |
@@ -152,7 +152,9 @@ func setupRouter(o Options) *chi.Mux {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Handle all other routes with static file server
|
// Handle all other routes with static file server
|
||||||
r.Get("/*", handlers.NewStaticHandler(o.Config.StaticPath).ServeHTTP)
|
staticHandler := handlers.NewStaticHandler(o.Config.StaticPath)
|
||||||
|
r.Get("/*", staticHandler.ServeHTTP)
|
||||||
|
r.Head("/*", staticHandler.ServeHTTP)
|
||||||
|
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user