webapi: New function /warehouse/read/path to read a file from warehouse to disk

This commit is contained in:
Kleissner
2021-11-26 08:53:42 +01:00
parent 3b839d547b
commit d64f8b19fb
4 changed files with 133 additions and 66 deletions

View File

@@ -74,6 +74,7 @@ func Start(ListenAddresses []string, UseSSL bool, CertificateFile, CertificateKe
Router.HandleFunc("/warehouse/create", apiWarehouseCreateFile).Methods("POST")
Router.HandleFunc("/warehouse/create/path", apiWarehouseCreateFilePath).Methods("GET")
Router.HandleFunc("/warehouse/read", apiWarehouseReadFile).Methods("GET")
Router.HandleFunc("/warehouse/read/path", apiWarehouseReadFilePath).Methods("GET")
Router.HandleFunc("/warehouse/delete", apiWarehouseDeleteFile).Methods("GET")
Router.HandleFunc("/file/read", apiFileRead).Methods("GET")
Router.HandleFunc("/file/view", apiFileView).Methods("GET")