Serve compiled front from the same application

also add embedded build for production
This commit is contained in:
2026-02-11 01:12:53 +01:00
parent 8fc5ff84c2
commit e127088195
28 changed files with 200 additions and 130 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(), "/ws/auth/") {
return
}
//do not check static files
if strings.HasPrefix(c.FullPath(), "/bookcover/") {
if strings.HasPrefix(c.FullPath(), "/static/bookcover/") {
return
}