Skip to content

Commit

Permalink
Fixed base url section typo, made it into bullet points and added inf…
Browse files Browse the repository at this point in the history
…o about how to add more URLs.
  • Loading branch information
gyuudon3187 authored Feb 28, 2024
1 parent 0b9c27f commit d29bc6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,6 @@ npm run lint
- heroku.yml -> contains Heroku instructions for running docker

## How to Handle API Calls
Each API base URL:s is stored as a property of the object `BASE_URL` declared in `src/util/api.ts`. When making an API call, the appropriate property of `BASE_URL` should be concatenated with the endpoint.
- Each API base URL is stored as a property of the object `BASE_URL` declared in and exported from `src/util/api.ts`.
- When making an API call, the URL should be formed by concatenating the appropriate property of `BASE_URL` with the endpoint.
- When adding a URL to `BASE_URL`, the property should be named after the service and capitalized.

0 comments on commit d29bc6e

Please sign in to comment.