flush method

dynamic flush()

Implementation

flush() {
  routes.clear();
  middlewares = [];
  aliasMiddleware = {};
}