-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare S2 update and add preliminary ringmaster/draftmaster content
- Loading branch information
Tom Moitié
committed
Mar 10, 2024
1 parent
230d6b5
commit d840435
Showing
5 changed files
with
89 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { clientGet } from './iracingClient'; | ||
|
||
// Only used to help get Ring Meister / Draftmaster in check | ||
export default async function getCarClasses() { | ||
const carClassResponse = await clientGet('/data/carclass/get'); | ||
return carClassResponse.data.map((carClass) => ({ | ||
id: carClass.id, | ||
cars_in_class: carClass.cars_in_class, | ||
name: carClass.car_name, | ||
short_name: carClass.short_name, | ||
})); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters