MCPcopy Create free account
hub / github.com/actiontech/dtle / inWhiteList

Function inWhiteList

api/route.go:276–283  ·  view source on GitHub ↗
(uri string)

Source from the content-addressed store, hash-verified

274}
275
276func inWhiteList(uri string) bool {
277 for _, whiteUri := range whiteList {
278 if uri == whiteUri {
279 return true
280 }
281 }
282 return false
283}
284func init() {
285 middleware.ErrJWTMissing.Code = http.StatusUnauthorized
286 middleware.ErrJWTMissing.Message = "permission denied,please login again!"

Callers 1

AuthFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected