Add basic file upload support

This commit is contained in:
Matthew Penner
2020-07-12 16:43:25 -06:00
parent eefc11bd0d
commit 7a6397bf17
4 changed files with 121 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ func Configure() *gin.Engine {
// These routes use signed URLs to validate access to the resource being requested.
router.GET("/download/backup", getDownloadBackup)
router.GET("/download/file", getDownloadFile)
router.POST("/upload/file", postServerUploadFiles)
// This route is special it sits above all of the other requests because we are
// using a JWT to authorize access to it, therefore it needs to be publicly