WebMw is the middleware for the web
(h http.Handler, app *app.App, rateLimit bool)
| 45 | |
| 46 | // WebMw is the middleware for the web |
| 47 | func WebMw(h http.Handler, app *app.App, rateLimit bool) http.Handler { |
| 48 | ret := h |
| 49 | |
| 50 | ret = ApplyLimit(ret.ServeHTTP, rateLimit) |
| 51 | |
| 52 | return ret |
| 53 | } |
| 54 | |
| 55 | // APIMw is the middleware for the API |
| 56 | func APIMw(h http.Handler, app *app.App, rateLimit bool) http.Handler { |
nothing calls this directly
no test coverage detected