Is it possible to get the actual endpoint callable when using a custom APIRoute class on a router. #7797
Unanswered
jimcarreer
asked this question in
Questions
Replies: 2 comments
-
Oh I'm an idiot, sorry I realized not 10 minutes after writing this that my custom APIRoute implementation will have the property "endpoint" which is the original callable associated with the route. Sorry for the needless chatter, that's what I get for coding drunk. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for reporting back and closing the issue 👍 |
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
-
First check
Description
Is it possible to get the actual endpoint callable when using a custom APIRoute class on a router.
Additional context
Specifically I would like to define something like the following:
I would like to use this for authorization / RBAC decoration of routes. I've looked at the Starlet Middleware for Authentication and its not sufficient for my goals. This was pretty trivial to do in flask so Im looking to be able to do something similar.
Beta Was this translation helpful? Give feedback.
All reactions