diff --git a/src/app.controller.ts b/src/app.controller.ts index cce879e..24fa193 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -1,12 +1,4 @@ -import { Controller, Get } from '@nestjs/common'; -import { AppService } from './app.service'; +import { Controller } from '@nestjs/common'; @Controller() -export class AppController { - constructor(private readonly appService: AppService) {} - - @Get() - getHello(): string { - return this.appService.getHello(); - } -} +export class AppController {} diff --git a/src/app.module.ts b/src/app.module.ts index 6f28444..187ee9c 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -45,6 +45,8 @@ import { SimpleKanbanBoardController } from './dashboards/simple-kanban-board.co import { IssueUrlEnhancer } from '@app/event-emitter/issue-enhancers/issue-url-enhancer'; import { IssuesByTagsWidgetService } from './dashboards/widgets/issues-by-tags.widget.service'; import { CategoryMergeToTagsEnhancer } from './issue-enhancers/category-merge-to-tags-enhancer'; +import { ServeStaticModule } from '@nestjs/serve-static'; +import { join } from 'path'; @Module({ imports: [ @@ -56,6 +58,9 @@ import { CategoryMergeToTagsEnhancer } from './issue-enhancers/category-merge-to isGlobal: true, }), ScheduleModule.forRoot(), + ServeStaticModule.forRoot({ + rootPath: join(__dirname, '..', 'frontend', 'build'), + }), ], controllers: [ AppController,