add rename method
This commit is contained in:
1 parent
381cac79b2
commit
47faf0b0e5
2 files changed
+19
-2
No files matched your search
+1
-2
@@ -79,8 +79,7 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
|
||||
return http.StatusOK, nil
|
||||
case http.MethodPatch:
|
||||
// Rename a file or directory
|
||||
|
||||
return http.StatusOK, nil
|
||||
return fi.Rename(w, r)
|
||||
default:
|
||||
return http.StatusNotImplemented, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user