MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / AdminAuth

Function AdminAuth

middleware/auth.go:160–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func AdminAuth() func(c *gin.Context) {
161 return func(c *gin.Context) {
162 authHelper(c, common.RoleAdminUser)
163 }
164}
165
166func RootAuth() func(c *gin.Context) {
167 return func(c *gin.Context) {

Callers 1

SetApiRouterFunction · 0.92

Calls 1

authHelperFunction · 0.85

Tested by

no test coverage detected