mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-13 17:56:44 +08:00
ce99bb927d
This reverts commit 34837afc7a
.
21 lines
357 B
Go
21 lines
357 B
Go
package weed_server
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func (fs *FilerServer) filerHandler(w http.ResponseWriter, r *http.Request) {
|
|
switch r.Method {
|
|
case "GET":
|
|
fs.GetOrHeadHandler(w, r, true)
|
|
case "HEAD":
|
|
fs.GetOrHeadHandler(w, r, false)
|
|
case "DELETE":
|
|
fs.DeleteHandler(w, r)
|
|
case "PUT":
|
|
fs.PostHandler(w, r)
|
|
case "POST":
|
|
fs.PostHandler(w, r)
|
|
}
|
|
}
|