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:
With SHOW_SWAGGER_UI_LINK=false in the .env or dokku config file, the link no longer shows up:
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 tofalse
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:With
SHOW_SWAGGER_UI_LINK=false
in the .env or dokku config file, the link no longer shows up: