encode / apistar

The Web API toolkit. 🛠
https://docs.apistar.com
BSD 3-Clause "New" or "Revised" License
5.57k stars 411 forks source link

How can I remove the /docs endpoint? #617

Closed supriyo-biswas closed 6 years ago

supriyo-biswas commented 6 years ago

For the web application that I'm developing, I don't need the /docs endpoint. Is there a way to remove it?

Also, I must mention that I'm really loving apistar :)

fetinin commented 6 years ago

You can disable the endpoint by passing docs_url=None into the App constructor.

app = App(routes=routes, docs_url=None)

tomchristie commented 6 years ago

Thanks @What-If-I!