Unified upload, edit and delete endpoint (new api specs)

This commit is contained in:
2022-01-24 13:14:43 +01:00
parent cfbdcc7f82
commit 000f030d9a
8 changed files with 374 additions and 407 deletions

View File

@@ -23,9 +23,7 @@ func main() {
r.HandleFunc("/api/recent", api.Recent).Methods(http.MethodGet)
r.HandleFunc("/api/search", api.Search).Methods(http.MethodGet)
r.HandleFunc("/api/upload", api.Upload).Methods(http.MethodPost)
r.HandleFunc("/api/edit", api.Edit).Methods(http.MethodPost)
r.HandleFunc("/api/delete", api.Delete).Methods(http.MethodPost)
r.HandleFunc("/api/article", api.Article).Methods(http.MethodPost, http.MethodPatch, http.MethodDelete)
r.HandleFunc("/api/assets", api.Assets).Methods(http.MethodGet, http.MethodPost, http.MethodDelete)