12 lines
292 B
JavaScript
12 lines
292 B
JavaScript
import Axios from 'axios'
|
|
|
|
const BACKEND_HOST = 'http://169.254.61.222:5000'
|
|
|
|
export function getMap(x, y) {
|
|
return Axios.get(`${BACKEND_HOST}/generate/${x}/${y}`).then(data => data.data)
|
|
}
|
|
|
|
export function getState() {
|
|
return Axios.get(`${BACKEND_HOST}/state`).then(data => data.data)
|
|
}
|