adjusting data access for proper application state object

This commit is contained in:
2021-11-04 14:32:23 -05:00
parent ed48714a4d
commit b3b08a1a1d
+3
View File
@@ -1,5 +1,7 @@
const API = "http://localhost:8088"
const applicationState = {}
export const fetchRequests = () => {
return fetch(`${API}/serviceRequests`)
.then(response => response.json())
@@ -10,6 +12,7 @@ export const fetchRequests = () => {
}
)
}
export const fetchJobTable = () => {
return fetch(`${API}/jobTable`)
.then(response => response.json())