#141: Added file meta to file uploads

This commit is contained in:
frikky
2020-11-23 15:50:31 +01:00
parent 1e58361150
commit acc6378dc2
5 changed files with 202 additions and 14 deletions
+1 -1
View File
@@ -8048,7 +8048,7 @@ func initHandlers() {
r.HandleFunc("/api/v1/files/{fileId}", handleDeleteFile).Methods("DELETE", "OPTIONS")
r.HandleFunc("/api/v1/files/create", handleCreateFile).Methods("POST", "OPTIONS")
r.HandleFunc("/api/v1/files/{fileId}/upload", handleUploadFile).Methods("POST", "OPTIONS")
//r.HandleFunc("/api/v1/files/{fileId}", handleGetFile).Methods("GET", "OPTIONS")
r.HandleFunc("/api/v1/files/{fileId}", handleGetFileMeta).Methods("GET", "OPTIONS")
http.Handle("/", r)
}