wip
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user