MCPcopy Create free account
hub / github.com/compozy/agh / loopbackAPIGuard

Function loopbackAPIGuard

internal/api/httpapi/middleware.go:274–276  ·  view source on GitHub ↗
(boundHost string)

Source from the content-addressed store, hash-verified

272}
273
274func loopbackAPIGuard(boundHost string) gin.HandlerFunc {
275 return loopbackGuard(boundHost, errLoopbackAPIRequired, true)
276}
277
278func loopbackMutationGuard(boundHost string) gin.HandlerFunc {
279 return loopbackGuard(boundHost, errLoopbackMutationRequired, false)

Callers 2

RegisterRoutesFunction · 0.85

Calls 1

loopbackGuardFunction · 0.85

Tested by 1