mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Reworking map import to handle postgres data dumps.
This commit is contained in:
parent
be4c3a5021
commit
5178f72b66
11 changed files with 194 additions and 109 deletions
|
|
@ -513,12 +513,12 @@ export async function setThrottle(on) {
|
|||
}
|
||||
|
||||
export async function getMapImportStatus() {
|
||||
let response = await apiGet(`${API_URI}/map/pbf`);
|
||||
let response = await apiGet(`${API_URI}/map/files`);
|
||||
return await response.json();
|
||||
}
|
||||
|
||||
export async function importPbfs(pbfs) {
|
||||
let body = {'pbfs': pbfs};
|
||||
export async function importMapFiles(paths) {
|
||||
let body = {'files': paths};
|
||||
let response = await apiPost(`${API_URI}/map/import`, body);
|
||||
if (response.status === 204) {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue