save
This commit is contained in:
@@ -41,7 +41,8 @@ func isWS(r *http.Request) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *S) serveStatic(w http.ResponseWriter, r *http.Request) error {
|
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 {
|
func (s *S) serveAPI(w http.ResponseWriter, r *http.Request) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user