Add component to upload book cover images

This commit is contained in:
2025-10-27 22:51:28 +01:00
parent d407b41c9f
commit 8b8eee8210
11 changed files with 152 additions and 12 deletions

View File

@@ -17,6 +17,11 @@ func Auth() gin.HandlerFunc {
return
}
//do not check static files
if strings.HasPrefix(c.FullPath(), "/bookcover") {
return
}
username, err := parseUserFromJwt(c)
if err != nil {
c.AbortWithStatusJSON(http.StatusUnauthorized,