Skip to content

Commit

Permalink
refactor: Update imports paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Aug 22, 2024
1 parent 628ebff commit 9c16162
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/stops/[stopID]/+page.server.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import stopAPI from '$lib/RestAPI/stop.js';
import arrivalDepartureAPI from '$lib/RestAPI/arrivalsAndDeparturesForStop.js';
import arrivalsAndDeparturesForStop from '../../../lib/RestAPI/arrivalsAndDeparturesForStop.js';
import stop from '../../../lib/RestAPI/stop.js';

export async function load({ params }) {
const stopID = params.stopID;
const stopResponse = await stopAPI(stopID);
const stopResponse = await stop(stopID);
const stopBody = await stopResponse.json();
const arrivalsAndDeparturesResponse = await arrivalDepartureAPI(stopID);
const arrivalsAndDeparturesResponse = await arrivalsAndDeparturesForStop(stopID);
const arrivalsAndDeparturesResponseJSON = await arrivalsAndDeparturesResponse.json();

return {
Expand Down

0 comments on commit 9c16162

Please sign in to comment.