Add support for multiple middleware

This commit is contained in:
Aranya Sen 2020-05-18 22:03:37 +05:30
parent 6e874128e8
commit 5281a48a85

View file

@ -13,5 +13,5 @@ if ($name = config('prometheus.metrics_route_name')) {
$middleware = config('prometheus.metrics_route_middleware');
if ($middleware) {
$route->middleware($middleware);
$route->middleware(explode(',', $middleware));
}