feat: get breakfast package from API
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user