OneBusAway / wayfinder

Modern web app frontend for OneBusAway built in JavaScript with SvelteKit
GNU Affero General Public License v3.0
4 stars 1 forks source link

refactor: Update all API fetches to use onebusaway-sdk #35

Closed Ahmedhossamdev closed 2 months ago

Ahmedhossamdev commented 2 months ago

This PR updates all REST API methods to use onebusaway-sdk, making the code cleaner and easier to maintain. By using the SDK, we improve consistency and reliability in API interactions.

This PR also changes the way APIs are fetched to enforce a pattern that ensures consistency across all routes.

Additionally, this PR introduces a singleton obaSdk to avoid multiples initializations and improve performance.

Please do

npm i onebusaway-sdk@0.1.0-alpha.40.

This is the latest version of the SDK.

aaronbrethorst commented 2 months ago

@Ahmedhossamdev is this ready for review?

Ahmedhossamdev commented 2 months ago

@Ahmedhossamdev is this ready for review?

Yes