MCPcopy
hub / github.com/mudler/LocalAI / NoopMiddleware

Function NoopMiddleware

core/http/auth/middleware.go:141–145  ·  view source on GitHub ↗

NoopMiddleware returns a middleware that does nothing (pass-through). Used when auth is disabled to satisfy route registration that expects an admin middleware parameter.

()

Source from the content-addressed store, hash-verified

139// Used when auth is disabled to satisfy route registration that expects
140// an admin middleware parameter.
141func NoopMiddleware() echo.MiddlewareFunc {
142 return func(next echo.HandlerFunc) echo.HandlerFunc {
143 return next
144 }
145}
146
147// RequireFeature returns middleware that checks the user has access to the given feature.
148// If no auth DB is provided, it passes through (backward compat).

Callers 5

APIFunction · 0.92
RequireFeatureFunction · 0.85
RequireRouteFeatureFunction · 0.85
RequireModelAccessFunction · 0.85
RequireQuotaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected