From 9fb35332d2f085cb1c83a5c57e8215c1a89ce0e6 Mon Sep 17 00:00:00 2001 From: Pavel Gnedov Date: Fri, 10 Mar 2023 18:50:14 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B3=D0=BB=D0=B0=D0=B2=D0=BD=D0=BE=D0=B3=D0=BE?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20nest=20=D0=B4=D0=BB=D1=8F=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20react=20?= =?UTF-8?q?=D0=B2=20=D0=BA=D0=B0=D1=87=D0=B5=D1=81=D1=82=D0=B2=D0=B5=20?= =?UTF-8?q?=D1=84=D1=80=D0=BE=D0=BD=D1=82=D0=B5=D0=BD=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.controller.ts | 12 ++---------- src/app.module.ts | 5 +++++ 2 files changed, 7 insertions(+), 10 deletions(-) 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,