I needed access to the list of routes and their mirrors so I create a private and public route system.
Example:
in main:
// search for public routes
app.router.targets.forEach((target) {
if (target.methodMirror.metadata.any((m) => m.reflectee is Public)) {
print('adding ${target.contextUrl}, ${target.template}');
publicRoutes.add(target.template);
}
});
I needed access to the list of routes and their mirrors so I create a private and public route system.
Example:
in main:
some interceptor: