Add author books list

This commit is contained in:
2025-11-25 18:11:27 +01:00
parent 624dfe0faa
commit 9ea7ef2e50
9 changed files with 233 additions and 19 deletions

View File

@@ -13,12 +13,12 @@ func Auth() gin.HandlerFunc {
return func(c *gin.Context) {
//do not check current user if we are creating an account or logging in
if strings.HasPrefix(c.FullPath(), "/auth") {
if strings.HasPrefix(c.FullPath(), "/auth/") {
return
}
//do not check static files
if strings.HasPrefix(c.FullPath(), "/bookcover") {
if strings.HasPrefix(c.FullPath(), "/bookcover/") {
return
}