This pull request makes it easier to use custom APIRouters in FastAPI applications. It introduces a new parameter custom_router in the Applications class constructor, which allows passing a custom router instance that extends APIRouter with additional functionality. This custom router will be used as the main router for the FastAPI application.
Summary
Modified the __init__ method in applications.py to include a new parameter custom_router.
Added support for passing a custom router instance that extends APIRouter with additional functionality.
Updated the Applications class constructor to handle the custom router and set it as the main router for the FastAPI application.
Fixes #2.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request makes it easier to use custom
APIRouter
s in FastAPI applications. It introduces a new parametercustom_router
in theApplications
class constructor, which allows passing a custom router instance that extendsAPIRouter
with additional functionality. This custom router will be used as the main router for the FastAPI application.Summary
__init__
method inapplications.py
to include a new parametercustom_router
.APIRouter
with additional functionality.Applications
class constructor to handle the custom router and set it as the main router for the FastAPI application.Fixes #2.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: