From 97e86e781e01cdf0b94ea00863d939bd4fac6860 Mon Sep 17 00:00:00 2001 From: Dltmd202 Date: Thu, 16 Nov 2023 23:26:18 +0900 Subject: [PATCH] =?UTF-8?q?[BE]=20chore:=20=EC=9A=B4=EC=98=81=20MVC=20?= =?UTF-8?q?=EC=BB=A8=ED=8A=B8=EB=A1=A4=EB=9F=AC=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BE/src/operate/controller/operate-mvc.controller.ts | 10 ++++++++++ BE/src/operate/operate.module.ts | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 BE/src/operate/controller/operate-mvc.controller.ts diff --git a/BE/src/operate/controller/operate-mvc.controller.ts b/BE/src/operate/controller/operate-mvc.controller.ts new file mode 100644 index 00000000..d8b31269 --- /dev/null +++ b/BE/src/operate/controller/operate-mvc.controller.ts @@ -0,0 +1,10 @@ +import { Controller, Get, Res } from '@nestjs/common'; +import { Response } from 'express'; + +@Controller('operate') +export class OperateMvcController { + @Get() + async getOperate(@Res() res: Response) { + res.sendFile('index.html', { root: 'public' }); + } +} diff --git a/BE/src/operate/operate.module.ts b/BE/src/operate/operate.module.ts index f9a204de..d2aa1b28 100644 --- a/BE/src/operate/operate.module.ts +++ b/BE/src/operate/operate.module.ts @@ -3,9 +3,10 @@ import { OperateController } from './controller/operate.controller'; import { OperateService } from './application/operate.service'; import { CustomTypeOrmModule } from '../config/typeorm/custom-typeorm.module'; import { MotiPolicyRepository } from './entities/moti-policy.repository'; +import { OperateMvcController } from './controller/operate-mvc.controller'; @Module({ - controllers: [OperateController], + controllers: [OperateController, OperateMvcController], providers: [OperateService], imports: [CustomTypeOrmModule.forCustomRepository([MotiPolicyRepository])], })