update code (Add middleware handle authentik server suddenly offline)

This commit is contained in:
2024-08-29 11:57:36 +07:00
parent 0af7c28227
commit 87aab176d2
6 changed files with 90 additions and 6 deletions
+14
View File
@@ -0,0 +1,14 @@
package middleware
import (
"log"
"github.com/gin-gonic/gin"
)
func CheckConnection() gin.HandlerFunc {
return func(c *gin.Context) {
log.Println("OK")
c.Next()
}
}