mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 07:07:31 +00:00
chore: move day backend to proper DI
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { DaysController } from './days.controller';
|
||||
import { DaysService } from './days.service';
|
||||
import { DaysMcp } from './days.mcp';
|
||||
import { DayNotesController } from './day-notes.controller';
|
||||
import { DayNotesService } from './day-notes.service';
|
||||
import { DayNotesMcp } from './day-notes.mcp';
|
||||
@@ -8,12 +9,15 @@ import { DayNotesMcp } from './day-notes.mcp';
|
||||
/**
|
||||
* Days + day-notes domain (S6 — Phase 2 trip sub-domain). The single prefix
|
||||
* /api/trips/:tripId/days covers both the days mount and the nested
|
||||
* /days/:dayId/notes mount. DayNotesService is exported for the plugin RPC
|
||||
* host (PluginHostDepsFactory).
|
||||
* /days/:dayId/notes mount. DaysMcp/DayNotesMcp carry the
|
||||
* decorator-registered MCP tools + resources. DaysService and DayNotesService
|
||||
* are exported for in-container consumers (PluginHostDepsFactory,
|
||||
* AccommodationsService, TripsService, the assignments/reservations MCP
|
||||
* controllers).
|
||||
*/
|
||||
@Module({
|
||||
controllers: [DaysController, DayNotesController],
|
||||
providers: [DaysService, DayNotesService, DayNotesMcp],
|
||||
exports: [DayNotesService],
|
||||
providers: [DaysService, DaysMcp, DayNotesService, DayNotesMcp],
|
||||
exports: [DaysService, DayNotesService],
|
||||
})
|
||||
export class DaysModule {}
|
||||
|
||||
Reference in New Issue
Block a user