Add support for multiple middleware
This commit is contained in:
parent
6e874128e8
commit
5281a48a85
1 changed files with 1 additions and 1 deletions
|
@ -13,5 +13,5 @@ if ($name = config('prometheus.metrics_route_name')) {
|
||||||
$middleware = config('prometheus.metrics_route_middleware');
|
$middleware = config('prometheus.metrics_route_middleware');
|
||||||
|
|
||||||
if ($middleware) {
|
if ($middleware) {
|
||||||
$route->middleware($middleware);
|
$route->middleware(explode(',', $middleware));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue