This commit is contained in:
Fran Jurmanović
2025-02-08 15:43:57 +01:00
parent face750b7d
commit e2fa9d2f7e
37 changed files with 5183 additions and 128 deletions

21
src/api/lookupService.ts Normal file
View File

@@ -0,0 +1,21 @@
import fetchAPI from "$api/apiService";
export const getCarModels = async () => {
return fetchAPI("/lookup/car-models");
};
export const getCupCategories = async () => {
return fetchAPI("/lookup/cup-categories");
};
export const getDriverCategories = async () => {
return fetchAPI("/lookup/driver-categories");
};
export const getSessionTypes = async () => {
return fetchAPI("/lookup/session-types");
};
export const getTracks = async () => {
return fetchAPI("/lookup/tracks");
};