mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 17:19:40 +02:00
NestJS matches routes in declaration order. The dynamic :code route was matching before me/created and me/received, treating 'me' as a gift code. Moved specific routes before the dynamic parameter route. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
578 B
TypeScript
20 lines
578 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { HealthController, createHealthProvider } from '@manacore/matrix-bot-common';
|
|
import { BotModule } from './bot/bot.module';
|
|
import { WidgetModule } from './widget/widget.module';
|
|
import configuration from './config/configuration';
|
|
|
|
@Module({
|
|
imports: [
|
|
ConfigModule.forRoot({
|
|
isGlobal: true,
|
|
load: [configuration],
|
|
}),
|
|
BotModule,
|
|
WidgetModule,
|
|
],
|
|
controllers: [HealthController],
|
|
providers: [createHealthProvider('matrix-clock-bot')],
|
|
})
|
|
export class AppModule {}
|