mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-13 17:50:59 +00:00
chore(mock): updated api mock endpoints
This commit is contained in:
@@ -19,7 +19,7 @@ async function main() {
|
|||||||
if (!existsSync('endpoints')) await mkdir('endpoints');
|
if (!existsSync('endpoints')) await mkdir('endpoints');
|
||||||
|
|
||||||
Promise.all(
|
Promise.all(
|
||||||
['getActiveData', 'getDonators', 'getSceneries', 'getVehicles'].map((endpointName) =>
|
['getActiveData', 'getDonators', 'getSceneries', 'getVehiclesData'].map((endpointName) =>
|
||||||
fetchJSONEndpointData(
|
fetchJSONEndpointData(
|
||||||
`https://stacjownik.spythere.eu/api/${endpointName}`,
|
`https://stacjownik.spythere.eu/api/${endpointName}`,
|
||||||
`${endpointName}.json`
|
`${endpointName}.json`
|
||||||
|
|||||||
Reference in New Issue
Block a user