Skip to content

Commit

Permalink
Update docs to include production URL variable
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Mar 24, 2021
1 parent c894551 commit b3efaf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/Authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ All API calls require an access token. You can get an access token by making a P
body: JSON.stringify({ "username": USERNAME, "password": PASSWORD})
};

let loginResponse = await fetch("API_URL/api/login", loginInit);
let loginResponse = await fetch("{{ production_url }}/api/login", loginInit);
let data = await loginResponse.json();

if (data === null){
Expand Down Expand Up @@ -51,7 +51,7 @@ All API calls require an access token. You can get an access token by making a P
request = POST
header = "Content-Type: application/json"
data = {"username":"USERNAME","password":"PASSWORD"}
url = "API_URL/api/login"
url = "{{ production_url }}/api/login"
```

Restrict read permissions to your user:
Expand Down

0 comments on commit b3efaf4

Please sign in to comment.