Uaktualnienie do wersji API

This commit is contained in:
2022-06-21 23:37:11 +02:00
parent 9e18d8bf9a
commit b91e58f9af
8 changed files with 51 additions and 360 deletions
@@ -1,7 +1,3 @@
export interface TimetablesAPIData {
errorMessage: string | null;
response: TimetableHistory[] | null;
}
export interface TimetableHistory {
timetableId: number;
+4 -7
View File
@@ -1,10 +1,7 @@
export const URLs = {
sceneryData: "https://spythere.github.io/api/stationData.json",
sceneryDataDev: "http://127.0.0.1:8000/data",
stations: "https://api.td2.info.pl:9640/?method=getStationsOnline",
dispatchers: "https://api.td2.info.pl:9640/?method=readFromSWDR&value=getDispatcherStatusList%3B1",
stacjownikAPI: "https://stacjownik.eu-4.evennode.com",
stacjownikAPIDev: "http://localhost:3001"
stacjownikAPI2: 'https://stacjownik.eu-4.evennode.com',
stacjownikAPI: 'http://localhost:3000',
stacjownikAPIDev: 'http://localhost:3000',
// trains: "https://api.td2.info.pl:9640/?method=getTrainsOnline",
// getTimetableURL: (trainNo: string | number, region = "eu") => `https://api.td2.info.pl:9640/?method=readFromSWDR&value=getTimetable%3B${trainNo}%3B${region}`
};
};