Skip to content

Commit

Permalink
[chore][ShowroomBooking]update route prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhhTien committed Feb 17, 2024
1 parent f901ec1 commit 98a03b8
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { AcceptLanguageResolver, QueryResolver, HeaderResolver, CookieResolver,
import { ConfigModule, ConfigService } from '@nestjs/config'
import { MongooseModule } from '@nestjs/mongoose'
import { RouterModule } from '@nestjs/core'
import { MailerModule } from '@nestjs-modules/mailer';
import { EjsAdapter } from '@nestjs-modules/mailer/dist/adapters/ejs.adapter';
import { MailerModule } from '@nestjs-modules/mailer'
import { EjsAdapter } from '@nestjs-modules/mailer/dist/adapters/ejs.adapter'

import { AppController } from '@src/app.controller'
import { AppService } from '@src/app.service'
Expand Down Expand Up @@ -58,21 +58,21 @@ import { VisitShowroomBookingModule } from '@visit-showroom-booking/booking.modu
secure: configService.get('SMTP_SECURE'),
auth: {
user: configService.get('SMTP_USERNAME'),
pass: configService.get('SMTP_PASSWORD'),
},
pass: configService.get('SMTP_PASSWORD')
}
},
defaults: {
from: `"${configService.get('SMTP_FROM_NAME')}" <${configService.get('SMTP_FROM_EMAIL')}>`,
from: `"${configService.get('SMTP_FROM_NAME')}" <${configService.get('SMTP_FROM_EMAIL')}>`
},
template: {
dir: join(__dirname, '/templates'),
adapter: new EjsAdapter(),
options: {
strict: false,
},
},
strict: false
}
}
}),
inject: [ConfigService],
inject: [ConfigService]
}),
RouterModule.register([
{
Expand All @@ -94,6 +94,10 @@ import { VisitShowroomBookingModule } from '@visit-showroom-booking/booking.modu
{
path: 'orders',
module: OrderModule
},
{
path: 'visit-showroom-booking',
module: VisitShowroomBookingModule
}
]),
CommonModule,
Expand Down

0 comments on commit 98a03b8

Please sign in to comment.