ucsb-cs156 / proj-happycows

https://ucsb-cs156.github.io/proj-happycows/
1 stars 0 forks source link

FEATURE: Swagger option on navbar #119

Open sanilkatula opened 6 months ago

sanilkatula commented 6 months ago

User Story

Discussion

There is already code in the AppNavbar.js file that checks the value returned by /api/systemInfo for turning the Swagger link on and off. But, at the moment, the resource file isn't set up to pull that value from an environment variable.

This PR shows what changes are needed to make this work:

https://github.com/ucsb-cs156/proj-courses/pull/93

Your job is just to make similar changes in this repo.

You could also make a similar issue that allows users to turn on/off the H2 console via a variable called H2_CONSOLE_ENABLED. But it would be smart to do that in a separate PR so you get more points!

Acceptance Criteria

As a developer