diff --git a/cmd/server/server.go b/cmd/server/server.go index ff93358..42ae2f1 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -41,7 +41,8 @@ func isWS(r *http.Request) bool { } func (s *S) serveStatic(w http.ResponseWriter, r *http.Request) error { - return fmt.Errorf("not impl static") + http.FS(http.Dir(s.config.Root)).ServeHTTP(w, r) + return nil } func (s *S) serveAPI(w http.ResponseWriter, r *http.Request) error {