コード例 #1
0
ファイル: Kernel.py プロジェクト: smgueye/blog
 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"]
         )
     )
コード例 #2
0
    def register_routes(self):
        Route.set_controller_module_location('app.controllers')

        self.application.make('router').add(
            Route.group(load_routes("routes.web"), middleware=["web"]))