Open
Description
Currently this package get all routes by calling default laravel router. Please add an ability to use custom class to get routes.
Typically we will need a new config that pass the default class to fetch all routes:
Currently:
$routes = app('Dingo\Api\Routing\Router')->getRoutes();
In this case I'm using package dingo/api so it should look like this:
$routes = [];
foreach(app('Dingo\Api\Routing\Router')->getRoutes() as $r) {
foreach($r->getRoutes() as $rr) {
$routes[] = $rr;
}
}
Anw, I believe this package would be a must-have package in future. Thanks so much for your efforts!