You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The routers in agents-api/agents_api/routers/*/routers.py are large single files with handlers for various routes. We should refactor them by splitting the files up into directories where each file contains only a single route. For example, in agents-api/agents_api/routers/agents/routers.py:
move the router = AppRouter() object to __init__.py
split up the different routes and their imports into individual files
Do the above for `routers/agents/*`, `routers/sessions/*`, and `routers/users/*`
The text was updated successfully, but these errors were encountered:
creatorrr
changed the title
Refactor routers to split routes into individual files
refactor(agents-api): Break up */routers.py to split routes into individual files
Jun 30, 2024
The routers in
agents-api/agents_api/routers/*/routers.py
are large single files with handlers for various routes. We should refactor them by splitting the files up into directories where each file contains only a single route. For example, inagents-api/agents_api/routers/agents/routers.py
:router = AppRouter()
object to__init__.py
get_user_details.py
, move:async def get_user_details(
user_id: UUID4,
x_developer_id: Annotated[UUID4, Depends(get_developer_id)],
) -> User:
The text was updated successfully, but these errors were encountered: