feat: get breakfast package from API

This commit is contained in:
Simon Emanuelsson
2024-10-28 10:12:03 +01:00
parent fc8844eb96
commit 62f549e85d
47 changed files with 718 additions and 210 deletions
+3 -3
View File
@@ -96,7 +96,7 @@ export async function getCountries(
return unstable_cache(
async function (searchParams) {
const countryResponse = await api.get(
api.endpoints.v1.countries,
api.endpoints.v1.Hotel.countries,
options,
searchParams
)
@@ -136,7 +136,7 @@ export async function getCitiesByCountry(
await Promise.all(
searchedCountries.data.map(async (country) => {
const countryResponse = await api.get(
`${api.endpoints.v1.citiesCountry}/${country.name}`,
api.endpoints.v1.Hotel.Cities.country(country.name),
options,
searchParams
)
@@ -182,7 +182,7 @@ export async function getLocations(
groupedCitiesByCountry: CitiesGroupedByCountry | null
) {
const apiResponse = await api.get(
api.endpoints.v1.locations,
api.endpoints.v1.Hotel.locations,
options,
searchParams
)