mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Change move file endpoint from PUT to POST and add integration tests for file moving and renaming
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user