Edit Controller.configureRoutes doc
This commit is contained in:
parent
5e9ddf2aad
commit
e2b5d4f135
1 changed files with 9 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue