Skip to content

Commit 7b9da5a

Browse files
committed
rollback to Multiple Routers
1 parent 6a0981c commit 7b9da5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ellar/core/modules/ref.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ def routes(self) -> t.List[BaseRoute]:
219219
if not self._flatten_routes:
220220
for router in self._routers:
221221
if isinstance(router, ModuleMount):
222-
self._flatten_routes.extend(router.get_flatten_routes())
222+
# TODO: Allow users to choose whether to run flatten route of group routes together
223+
router.build_child_routes()
224+
self._flatten_routes.append(router)
223225
continue
224226
if isinstance(router, BaseRoute):
225227
self._flatten_routes.append(router)

0 commit comments

Comments
 (0)