diff --git a/route.go b/route.go index 8a82fa2..5ccd909 100644 --- a/route.go +++ b/route.go @@ -105,5 +105,10 @@ func router() *gin.Engine { }{data}) }) + authZone.GET("/download", func(c *gin.Context) { + user := getUser(c) + c.FileAttachment(user.FilePath(DEFAULT_JOURNAL), DEFAULT_JOURNAL) + }) + return r }