Edit Controller.configureRoutes doc

This commit is contained in:
Axel LE BOT 2019-07-27 11:46:03 +02:00
parent 5e9ddf2aad
commit e2b5d4f135

View file

@ -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<void> configureRoutes(Routable routable) {
/// routable.all('*', myMiddleware);
/// }
/// ```
FutureOr<void> configureRoutes(Routable routable) {} FutureOr<void> configureRoutes(Routable routable) {}
/// Finds the [Expose] declaration for this class. /// Finds the [Expose] declaration for this class.