buildRouter method
Builds and caches the router for this controller asynchronously. This method supports JWT middleware integration.
Implementation
Future<Router> buildRouter() async {
if (_cachedRouter == null) {
_cachedRouter = await RouterBuilder.buildFromController(this);
}
return _cachedRouter!;
}