add rename method

This commit is contained in:
Henrique Dias committed 2016-06-11 21:34:38 +01:00
1 parent 381cac79b2
commit 47faf0b0e5
2 files changed
+19 -2

No files matched your search

+1 -2
View File
@@ -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
}