Change move file endpoint from PUT to POST and add integration tests for file moving and renaming

This commit is contained in:
2025-10-22 21:50:37 +02:00
parent 01d9a984fc
commit d0842c515f
2 changed files with 49 additions and 1 deletions

View File

@@ -134,7 +134,7 @@ func setupRouter(o Options) *chi.Mux {
r.Get("/lookup", handler.LookupFileByName())
r.Post("/upload", handler.UploadFile())
r.Put("/move", handler.MoveFile())
r.Post("/move", handler.MoveFile())
r.Post("/", handler.SaveFile())
r.Get("/content", handler.GetFileContent())