allow store upload, + upload UIs for store and config

This commit is contained in:
Mikaël Cluseau
2023-08-19 21:17:23 +02:00
parent b6fa941fcc
commit c338522b33
4 changed files with 103 additions and 6 deletions

View File

@ -34,6 +34,9 @@ func registerWS(rest *restful.Container) {
Produces(mime.TAR).
Param(ws.QueryParameter("token", "the download token")).
Doc("Fetch the encrypted store")).
Route(ws.POST("/store.tar").To(wsStoreUpload).
Consumes(mime.TAR).
Doc("Upload an existing store")).
Route(ws.GET("/downloads/{token}/{asset}").To(wsDownload).
Param(ws.PathParameter("token", "the download token")).
Param(ws.PathParameter("asset", "the requested asset")).