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

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

FEATURE: Swagger option on navbar #8

Closed github-actions[bot] closed 1 month ago

github-actions[bot] commented 2 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

github-actions[bot] commented 2 months ago

Copied from https://github.com/ucsb-cs156/proj-courses/issues/94