mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 02:34:21 +00:00
cc9587676a
GET /api/health/features lived in booking-import, which meant the client's
capability probe was reachable only because that domain happened to be
registered. Move it to health/ and give health an actual module instead of
two loose entries in app.module.
The extractor probe follows into a leaf module rather than health importing
BookingImportModule: features() needs isAvailable(), not llm-parse,
reservations, budget, maps and places.
The /api/_nest/{health,me,echo} smoke endpoints go. They proved boot, DI,
the cookie guard and the Zod pipe back when nothing else did; every one of
those now has real domain coverage, and nothing outside their own test ever
called them. The container probe is GET /api/health on the raw express layer
and is untouched.
13 lines
549 B
TypeScript
13 lines
549 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { KitineraryExtractorService } from './kitinerary-extractor.service';
|
|
|
|
/** The kitinerary binary probe on its own. It has no dependencies, and the
|
|
* feature-flag endpoint in health/ needs nothing else from booking-import —
|
|
* importing the whole domain there would drag llm-parse, reservations, budget,
|
|
* maps and places along for one `isAvailable()`. */
|
|
@Module({
|
|
providers: [KitineraryExtractorService],
|
|
exports: [KitineraryExtractorService],
|
|
})
|
|
export class KitineraryExtractorModule {}
|