Implement ordering process
This commit is contained in:
12
software/src/data/api/mainApi.ts
Normal file
12
software/src/data/api/mainApi.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import axios from "axios"
|
||||
|
||||
const BASE_URL = "http://localhost:3000/api"
|
||||
|
||||
export function getServerState() {
|
||||
return axios.get(BASE_URL)
|
||||
|
||||
}
|
||||
|
||||
export function resetDatabase() {
|
||||
return axios.get(BASE_URL + "/resetdatabase")
|
||||
}
|
||||
Reference in New Issue
Block a user