Add download

This commit is contained in:
Wancat
2022-11-04 23:45:00 +08:00
parent b1d0bc826f
commit 4ae49b5db6

View File

@@ -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
}