mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 07:07:31 +00:00
724c88c201
A mechanical prettier --write over server/src, server/tests, server/scripts and shared/src with the workspaces' .prettierrc; nothing but layout and import order changes, and every file keeps the same set of imports. shared is formatted throughout and its format baseline is empty. The server baseline keeps the 35 files that Prettier would grow past their lint:size limit (they need a split first, which is not a formatting change), and the generated entity files stay as their generator writes them.
39 lines
1.6 KiB
TypeScript
39 lines
1.6 KiB
TypeScript
import { Trips } from '../../db/entities/Trips.entity';
|
|
import { AddonsModule } from '../addons/addons.module';
|
|
import { BookingImportModule } from '../booking-import/booking-import.module';
|
|
import { AirtrailModule } from '../integrations/airtrail.module';
|
|
import { McpSharedModule } from '../mcp-shared/mcp-shared.module';
|
|
import { PermissionsModule } from '../permissions/permissions.module';
|
|
import { TripMembershipModule } from '../trip-membership/trip-membership.module';
|
|
import { ReservationImportController } from './reservation-import.controller';
|
|
import { ReservationImportMcp } from './reservation-import.mcp';
|
|
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
|
import { Module } from '@nestjs/common';
|
|
|
|
/**
|
|
* The one route prefix that turns something external into reservations.
|
|
*
|
|
* It owns the controller and nothing else: the file-upload pipeline stays in
|
|
* booking-import/ and the AirTrail pipeline in integrations/, because those are
|
|
* where their own domains live. What moved here is the HTTP surface they were
|
|
* both declaring separately. ReservationImportMcp is the second surface over
|
|
* the same prefix, so it lives with the controller for the same reason.
|
|
*
|
|
* McpSharedModule holds the tool's permission/broadcast guards; it is not
|
|
* @Global, so it is named here.
|
|
*/
|
|
@Module({
|
|
imports: [
|
|
TripMembershipModule,
|
|
BookingImportModule,
|
|
AirtrailModule,
|
|
AddonsModule,
|
|
PermissionsModule,
|
|
McpSharedModule,
|
|
MikroOrmModule.forFeature([Trips]),
|
|
],
|
|
controllers: [ReservationImportController],
|
|
providers: [ReservationImportMcp],
|
|
})
|
|
export class ReservationImportModule {}
|