diff --git a/lib/src/core/controller.dart b/lib/src/core/controller.dart index b9dd28dc..36573f4c 100644 --- a/lib/src/core/controller.dart +++ b/lib/src/core/controller.dart @@ -124,7 +124,15 @@ class Controller { }; } - /// Used to add additional routes to the router from within a [Controller]. + /// Used to add additional routes or middlewares to the router from within + /// a [Controller]. + /// + /// ```dart + /// @override + /// FutureOr configureRoutes(Routable routable) { + /// routable.all('*', myMiddleware); + /// } + /// ``` FutureOr configureRoutes(Routable routable) {} /// Finds the [Expose] declaration for this class.