Skip to content

Commit

Permalink
Fix Lumen routing for docs (fixes #365)
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Nov 16, 2021
1 parent 4351be8 commit b859f9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes/lumen.php
Expand Up @@ -10,7 +10,7 @@
$router->group([
'middleware' => $middleware
], function () use ($router, $prefix) {
$router->get($prefix, ['uses' => [Controller::class, 'webpage'], 'as' => 'scribe']);
$router->get("$prefix.postman", ['uses' => [Controller::class, 'postman'], 'as' => 'scribe.postman']);
$router->get("$prefix.openapi", ['uses' => [Controller::class, 'openapi'], 'as' => 'scribe.openapi']);
$router->get($prefix, ['uses' => Controller::class.'@webpage', 'as' => 'scribe']);
$router->get("$prefix.postman", ['uses' => Controller::class.'@postman', 'as' => 'scribe.postman']);
$router->get("$prefix.openapi", ['uses' => Controller::class.'@openapi', 'as' => 'scribe.openapi']);
});

0 comments on commit b859f9a

Please sign in to comment.