MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / newOpenapiCheck

Function newOpenapiCheck

plugins/openapi/check.go:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func newOpenapiCheck() *openapiCheck {
29 apikey, has := env.GetEnv("API_KEY")
30 if !has {
31 apikey = defaultAPIKey
32 }
33 p := &openapiCheck{apikey: apikey}
34 autowire.Autowired(p)
35 return p
36}
37
38func (o *openapiCheck) Check(method string, path string) (bool, []gin.HandlerFunc) {
39 if strings.HasPrefix(path, "/openapi/") {

Callers 1

check.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected