configureRoutes method

FutureOr<void> configureRoutes(
  1. Routable routable
)

Used to add additional routes or middlewares to the router from within a Controller.

@override
FutureOr<void> configureRoutes(Routable routable) {
  routable.all('*', myMiddleware);
}

Implementation

FutureOr<void> configureRoutes(Routable routable) {}