Add support for direct downloads of server files

This commit is contained in:
Dane Everitt
2020-04-06 20:27:57 -07:00
parent cc54b99b55
commit 3edcd5f9c3
3 changed files with 70 additions and 0 deletions

View File

@@ -15,6 +15,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)
// 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