Настройка главного приложения nest для использования react в качестве фронтенда
This commit is contained in:
parent
6e4e32f6cb
commit
9fb35332d2
2 changed files with 7 additions and 10 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue