ucsb-cs156-s24 / proj-courses-s24-4pm-3

https://ucsb-cs156-s24.github.io/proj-courses-s24-4pm-3/
0 stars 0 forks source link

FEATURE: Swagger option on NavBar #39

Closed ericpretzel closed 4 months ago

ericpretzel commented 4 months ago

Closes #14.

In this PR I implemented the option for developers to enable/disable the swagger ui link in the nav bar. This can be useful to reduce clutter if they are trying to test or demo a (generally frontend) change that does not involve swagger at all. It is set to true by default in dev environment and set to false by default in prod environment.

With SHOW_SWAGGER_UI_LINK=true in the .env or dokku config file, the Swagger UI link appears in the top nav bar: image

With SHOW_SWAGGER_UI_LINK=false in the .env or dokku config file, the link no longer shows up: image