Skip to content

Commit

Permalink
Updated API routes
Browse files Browse the repository at this point in the history
  • Loading branch information
wrigh393 committed Feb 3, 2021
1 parent 311ad72 commit 7cac01a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/AppView/AppView.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function AppView({ setDarkMode }){
myHeaders.append("Authorization", `Bearer ${access_token}`);
let requestOptions = { headers: myHeaders };

const apiResponse = await fetch(`/api/${queuesToLoad}`, requestOptions);
const apiResponse = await fetch(`/api/data/${queuesToLoad}`, requestOptions);
const queueJson = await apiResponse.json();
setQueues(queueJson);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/components/QueueSelector/QueueSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const getQueueCounts = async (access_token) => {
myHeaders.append("Authorization", `Bearer ${access_token}`);
let requestOptions = { headers: myHeaders };

const apiResponse = await fetch(`/api/get_queues`, requestOptions);
const apiResponse = await fetch(`/api/data/get_queues`, requestOptions);
const queueCountJson = await apiResponse.json();

return queueCountJson;
Expand Down

0 comments on commit 7cac01a

Please sign in to comment.