File tree Expand file tree Collapse file tree
packages/apps/reputation-oracle/server/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { Controller , Get , Redirect } from '@nestjs/common' ;
2+ import { ApiExcludeEndpoint } from '@nestjs/swagger' ;
3+ import { Public } from './common/decorators' ;
4+
5+ @Controller ( )
6+ export class AppController {
7+ @Get ( '/' )
8+ @Public ( )
9+ @Redirect ( '/swagger' , 301 )
10+ @ApiExcludeEndpoint ( )
11+ public swagger ( ) : string {
12+ return 'OK' ;
13+ }
14+ }
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import { NDAModule } from './modules/nda/nda.module';
3232import { StorageModule } from './modules/storage/storage.module' ;
3333
3434import Environment from './utils/environment' ;
35+ import { AppController } from './app.controller' ;
3536
3637@Module ( {
3738 providers : [
@@ -98,5 +99,6 @@ import Environment from './utils/environment';
9899 WebhookIncomingModule ,
99100 WebhookOutgoingModule ,
100101 ] ,
102+ controllers : [ AppController ] ,
101103} )
102104export class AppModule { }
You can’t perform that action at this time.
0 commit comments