how to use APIRouter with pages as classes #3979
Unanswered
belalhmedan90
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Have you seen our modularization example? It shows some techniques on how to split you pages into several files and also includes an |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I created pages as classes:
each of which of these classes is in different script, and I want to use
APIRouter
to create page paths, and route between them using main script e.g.:app.py
can you please tell me how I can do that? otherwise can you please guide me to a best-practice repo that uses the Router with multi pages / classes? thanksBeta Was this translation helpful? Give feedback.
All reactions