Skip to content

Commit

Permalink
[BE] chore: 운영 MVC 컨트롤러 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
Dltmd202 committed Nov 16, 2023
1 parent 6c6cafa commit 97e86e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions BE/src/operate/controller/operate-mvc.controller.ts
Original file line number Diff line number Diff line change
@@ -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' });
}
}
3 changes: 2 additions & 1 deletion BE/src/operate/operate.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])],
})
Expand Down

0 comments on commit 97e86e7

Please sign in to comment.