cancel
Showing results for 
Search instead for 
Did you mean: 

How do I turn off swagger-ui in production

SOLVED
Highlighted
Occasional Contributor

How do I turn off swagger-ui in production

Hi,

 

I want to turn off my swagger-ui when my product is about to release.

How to do it ?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

Re: How do I turn off swagger-ui in production

Swagger UI is just a set of static files. If you don't want to expose it, either don't deploy the files, or block them in whichever web server you use.


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

View solution in original post

1 REPLY 1
Moderator

Re: How do I turn off swagger-ui in production

Swagger UI is just a set of static files. If you don't want to expose it, either don't deploy the files, or block them in whichever web server you use.


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

View solution in original post

New Here?
Join us and watch the welcome video:
Watch the new Interview