This commit is contained in:
Bel LaPointe
2024-12-14 20:45:29 -07:00
parent 20db498168
commit aa330dffea
3 changed files with 39 additions and 2 deletions

View File

@@ -30,7 +30,8 @@ func (s *S) serveHTTP(w http.ResponseWriter, r *http.Request) error {
}
func (s *S) serveStatic(w http.ResponseWriter, r *http.Request) error {
http.FS(http.Dir(s.config.Root)).ServeHTTP(w, r)
fs := http.Dir(s.config.Root)
http.FileServer(fs).ServeHTTP(w, r)
return nil
}