NoopMiddleware returns a middleware that does nothing (pass-through). Used when auth is disabled to satisfy route registration that expects an admin middleware parameter.
()
| 139 | // Used when auth is disabled to satisfy route registration that expects |
| 140 | // an admin middleware parameter. |
| 141 | func 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). |
no outgoing calls
no test coverage detected