Expose ski pass flag in listings API and list view

This commit is contained in:
Tero Halla-aho 2025-12-06 23:30:53 +02:00
parent e44b9b9685
commit 8c9265104e
2 changed files with 2 additions and 0 deletions

View file

@ -163,6 +163,7 @@ export async function GET(req: Request) {
hasBarbecue: listing.hasBarbecue,
hasMicrowave: listing.hasMicrowave,
hasFreeParking: listing.hasFreeParking,
hasSkiPass: listing.hasSkiPass,
evChargingAvailable: listing.evChargingAvailable,
maxGuests: listing.maxGuests,
bedrooms: listing.bedrooms,

View file

@ -31,6 +31,7 @@ type ListingResult = {
hasMicrowave: boolean;
hasFreeParking: boolean;
evChargingAvailable: boolean;
hasSkiPass: boolean;
maxGuests: number;
bedrooms: number;
beds: number;