Hi!
I'm using a plugin trough the client command.
I'm trying to get all the routes using this bunch of code:
$grav = Grav::instance();
$pages = $grav['pages'];
$routes = $pages->routes();
But the routes are always empty, any idea why? If I execute this code on a plugin within the application it works.
Thanks!