save
parent
68f8e931e7
commit
0db285d4d4
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue