feat: add renameFile operation, improve logs and docs

This commit is contained in:
Juan Pablo Villafáñez
2024-07-31 12:50:41 +02:00
parent 1c3f7cd35a
commit 78195bba2e
3 changed files with 190 additions and 14 deletions
@@ -151,8 +151,7 @@ func prepareRoutes(r *chi.Mux, options Options) {
case "PUT_RELATIVE":
adapter.PutRelativeFile(w, r)
case "RENAME_FILE":
// https://docs.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/rest/files/renamefile
stdhttp.Error(w, stdhttp.StatusText(stdhttp.StatusNotImplemented), stdhttp.StatusNotImplemented)
adapter.RenameFile(w, r)
case "DELETE":
adapter.DeleteFile(w, r)