16 lines
325 B
TypeScript
16 lines
325 B
TypeScript
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")
|
|
}
|
|
|
|
export function resetExerciseProgress() {
|
|
return axios.get(BASE_URL + "/resetExerciseProgress")
|
|
} |