Serve compiled front from the same application
also add embedded build for production
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(), "/ws/auth/") {
|
||||
return
|
||||
}
|
||||
|
||||
//do not check static files
|
||||
if strings.HasPrefix(c.FullPath(), "/bookcover/") {
|
||||
if strings.HasPrefix(c.FullPath(), "/static/bookcover/") {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user