6

I am using DRF, and I want to noone know what urls my project has. So when you go to link like localhost:8000/api/ you can see browsable api, I already hide it by following settings:

'DEFAULT_RENDERER_CLASSES': (
    'rest_framework.renderers.JSONRenderer',
),

but it still shows me available urls in json format.

How to hide these urls?

1 Answer 1

8

You likely want to use SimpleRouter instead of DefaultRouter

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.