Spaces:
Paused
Paused
Download server/src/nest/booking-import/features.controller.ts from Leon4gr45/augmenttoolkit: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/spaces/Leon4gr45/augmenttoolkit/resolve/main/server/src/nest/booking-import/features.controller.ts
- Command line
-
hf download hf://spaces/Leon4gr45/augmenttoolkit/server/src/nest/booking-import/features.controller.ts
-
curl -L -o features.controller.ts https://huggingface.co/spaces/Leon4gr45/augmenttoolkit/resolve/main/server/src/nest/booking-import/features.controller.ts
460 Bytes
| 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. */ | |
| ('api/health') | |
| export class FeaturesController { | |
| constructor(private readonly extractor: KitineraryExtractorService) {} | |
| ('features') | |
| features() { | |
| return { | |
| bookingImport: this.extractor.isAvailable(), | |
| }; | |
| } | |
| } | |