Add author books list
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user