🎨 Run updated prettier
This commit is contained in:
@ -5,7 +5,7 @@ const baseUrl = "https://mobileapi.dsbcontrol.de";
|
||||
|
||||
export async function getAuthtoken(username, password) {
|
||||
const response = await axios.get(
|
||||
`${baseUrl}/authid?user=${username}&password=${password}&bundleid&appversion&osversion&pushid`
|
||||
`${baseUrl}/authid?user=${username}&password=${password}&bundleid&appversion&osversion&pushid`,
|
||||
);
|
||||
if (response.data == "") throw "Wrong DSB username or password";
|
||||
return response.data;
|
||||
@ -13,7 +13,7 @@ export async function getAuthtoken(username, password) {
|
||||
|
||||
export async function getTimetables(authtoken) {
|
||||
const response = await axios.get(
|
||||
`${baseUrl}/dsbtimetables?authid=${authtoken}`
|
||||
`${baseUrl}/dsbtimetables?authid=${authtoken}`,
|
||||
);
|
||||
const timetables = response.data;
|
||||
|
||||
|
Reference in New Issue
Block a user