Add urls to router root #8214
Unanswered
datapythonista
asked this question in
Ideas & Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Somhow related to #7830
Maybe I'm missing something (new to drf). But my use case seems quite simple. I use drf with jwt. I have couple of custom web services, and them I add simplejwt.
In the root of the API docs I get a list with my custom view, and the nice doc pages that come out of the box. But then I need to add the jwt urls there, so my frontend developers know about them too. But since they aren't ModelViews, it doesn't seem it can be easily done.
I ended up implementing my own router:
This works just fine, but seems my use case is generic enough so this (or something equivalent) is implemented in the default router.
Am I missing something? Is this something worth adding? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions