Add upload and move file functionalities to API with appropriate routes

This commit is contained in:
2025-07-10 21:07:20 +02:00
parent 4b8ad359a4
commit ae4e9c8db2
2 changed files with 129 additions and 0 deletions

View File

@@ -133,6 +133,9 @@ func setupRouter(o Options) *chi.Mux {
r.Put("/_op/last", handler.UpdateLastOpenedFile())
r.Get("/_op/lookup", handler.LookupFileByName())
r.Post("/_op/upload/*", handler.UploadFile())
r.Put("/_op/move", handler.MoveFile())
r.Post("/*", handler.SaveFile())
r.Get("/*", handler.GetFileContent())
r.Delete("/*", handler.DeleteFile())