Add support for downloading a backup

This commit is contained in:
Dane Everitt
2020-04-05 18:56:54 -07:00
parent ccbb119948
commit c4474e22f6
6 changed files with 114 additions and 2 deletions

View File

@@ -7,6 +7,9 @@ func Configure() *gin.Engine {
router := gin.Default()
router.Use(SetAccessControlHeaders)
// These routes use signed URLs to validate access to the resource being requested.
router.GET("/download/backup", getDownloadBackup)
// This route is special is sits above all of the other requests because we are
// using a JWT to authorize access to it, therefore it needs to be publically
// accessible.