-
-
Notifications
You must be signed in to change notification settings - Fork 15
How to inject router in class? #127
Copy link
Copy link
Open
Description
Hi Yezz, I've been using version 2 for a long time.
And one of the reasons is that, as the name package suggests, I can use it as a class and inject it into different routers according to my code needs, tests, use inheritance, use as a container, etc.
But version 3 and above no longer use the class format, such as the Routable.
So I was using the end: app.include_router(container[IRestAPI].router)
How can I still use the fastapi-class as a class?
Thank you
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Todo