services
build-and-push / detect (push) Successful in 7s
build-and-push / build (${{ fromJSON(needs.detect.outputs.services) }}) (push) Failing after 3m33s

This commit is contained in:
2026-08-26 11:04:23 +03:00
parent 4bd1512994
commit c231be0094
1424 changed files with 1076244 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package auth
import (
"github.com/labstack/echo"
"net/http"
)
func RequiredMiddleware(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
ac := c.(*Context)
if ac == nil || ac.GetId() == 0 {
return c.Redirect(http.StatusFound, "/login")
}
return next(c)
}
}