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

Function UserAuth

middleware/auth.go:154–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152}
153
154func UserAuth() func(c *gin.Context) {
155 return func(c *gin.Context) {
156 authHelper(c, common.RoleCommonUser)
157 }
158}
159
160func AdminAuth() func(c *gin.Context) {
161 return func(c *gin.Context) {

Callers 2

SetApiRouterFunction · 0.92
SetRelayRouterFunction · 0.92

Calls 1

authHelperFunction · 0.85

Tested by

no test coverage detected