fix: coderabbit suggestions

This commit is contained in:
Stavros
2025-08-26 14:31:09 +03:00
parent d3c40bb366
commit a5e1ae096b
19 changed files with 178 additions and 47 deletions

View File

@@ -79,6 +79,7 @@ func (m *ContextMiddleware) Middleware() gin.HandlerFunc {
if !exists {
log.Debug().Msg("OAuth provider from session cookie not found")
m.Auth.DeleteSessionCookie(c)
goto basic
}

View File

@@ -20,10 +20,10 @@ func NewUIMiddleware() *UIMiddleware {
}
func (m *UIMiddleware) Init() error {
ui, err := fs.Sub(assets.FontendAssets, "dist")
ui, err := fs.Sub(assets.FrontendAssets, "dist")
if err != nil {
return nil
return err
}
m.UIFS = ui

View File

@@ -10,8 +10,8 @@ import (
var (
loggerSkipPathsPrefix = []string{
"GET /api/healthcheck",
"HEAD /api/healthcheck",
"GET /api/health",
"HEAD /api/health",
"GET /favicon.ico",
}
)