Skip to content

Commit

Permalink
Do not match with a URL like /foo/bar
Browse files Browse the repository at this point in the history
  • Loading branch information
bertramakers committed Aug 23, 2022
1 parent 21a4c9f commit 4d1d2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/PsrRouterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function (Application $app) {
$router = new Router();
$router->setStrategy(new CustomLeagueRouterStrategy());

$router->get('/{offerType}/{offerId}/', [$app[GetDetailRequestHandler::class], 'handle']);
$router->get('/{offerType:events|places}/{offerId}/', [$app[GetDetailRequestHandler::class], 'handle']);

return $router;
}
Expand Down

0 comments on commit 4d1d2fe

Please sign in to comment.