add functionality similar to fastapi.APIRouter.add_api_route #1534
kj4tmp
started this conversation in
Ideas / Feature Requests
Replies: 1 comment
-
Sounds good. Anyone interested in creating a pull request? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Add a function to nicegui.APIRouter() that allows page declaration without using a decorator.
function could be something like nicegui.APIRouter.add_page_route
reason being this allows a page function to be declared within a class, and the page function would have access to self.
reference
Beta Was this translation helpful? Give feedback.
All reactions