def register_routes(self): Route.set_controller_locations(self.application.make("controllers.location")) self.application.bind("routes.location", "routes/web") self.application.make("router").add( Route.group( load(self.application.make("routes.location"), "ROUTES"), middleware=["web"] ) )
def register_routes(self): Route.set_controller_module_location('app.controllers') self.application.make('router').add( Route.group(load_routes("routes.web"), middleware=["web"]))