ucsb-cs156-s24 / proj-organic-s24-5pm-2

https://ucsb-cs156-s24.github.io/proj-organic-s24-5pm-2/
0 stars 0 forks source link

Abhishek - This changes the two files that then allow for navbar swagger turn on. #13

Closed abhishekambastha04 closed 4 months ago

abhishekambastha04 commented 5 months ago

As a developer I can easily turn on the swagger option on the app navbar for any deployment through defining an environment variable SHOW_SWAGGER_UI_LINK so that it is easy to access swagger when I need it, but I can easily turn it off when I don't. Allows developer to set a variable called SHOW_SWAGGER_UI_LINK to true or false in their config variables. Adding these couple of lines on the application files allows for the swagger option on the navbar. Now, based on the dokku config value being true or false, it will give a swagger option.

This closes #6.

Screen Shot 2024-05-21 at 6 58 50 PM

Above is when swagger is set to true on dokku.

Screen Shot 2024-05-21 at 7 01 45 PM

Above is when swagger is set to false on dokku.