Spaces:
Sleeping
Sleeping
File size: 460 Bytes
57a889c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import { Controller, Get } from '@nestjs/common';
import { KitineraryExtractorService } from './kitinerary-extractor.service';
/** Exposes server feature flags consumed by the frontend to show/hide optional UI. */
@Controller('api/health')
export class FeaturesController {
constructor(private readonly extractor: KitineraryExtractorService) {}
@Get('features')
features() {
return {
bookingImport: this.extractor.isAvailable(),
};
}
}
|