File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
ellar/core/modules/decorator Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def validate_module_decorator(self) -> None:
2727 """Runs module decorator validations"""
2828
2929 @abstractmethod
30- def get_routes (self , force_build : bool = False ) -> t .List [BaseRoute ]:
30+ def get_routes (self ) -> t .List [BaseRoute ]:
3131 """Runs flattened routes from registered controllers and routers"""
3232
3333 @abstractmethod
Original file line number Diff line number Diff line change @@ -128,10 +128,9 @@ def _builder_service(
128128 provider = ProviderConfig (item )
129129 self ._services .append (t .cast (ProviderConfig , provider ))
130130
131- def get_routes (self , force_build : bool = False ) -> t .List [BaseRoute ]:
132- if not force_build and self ._routes :
133- return self ._routes
134- self ._routes = self ._build_routes ()
131+ def get_routes (self ) -> t .List [BaseRoute ]:
132+ if not self ._routes :
133+ self ._routes = self ._build_routes ()
135134 return self ._routes
136135
137136 def _build_routes (self ) -> t .List [BaseRoute ]:
@@ -156,7 +155,7 @@ def get_module_routers(self) -> t.List[ModuleRouterBase]:
156155 _module_routers : t .List [ModuleRouterBase ] = []
157156
158157 for controller in self ._controllers :
159- _module_routers .append (controller .get_mount ())
158+ _module_routers .append (controller .get_router ())
160159
161160 for item in self ._module_routers :
162161 if isinstance (item , (ModuleRouterBase ,)):
You can’t perform that action at this time.
0 commit comments