Created
June 8, 2025 23:00
-
-
Save dandean/a2543aff14686774025eea42475de182 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Controller, Get, Module, OnApplicationBootstrap} from '@nestjs/common'; | |
import { | |
ModulesContainer, | |
NestFactory, | |
Reflector, | |
RouterModule, | |
} from '@nestjs/core'; | |
@Controller('controller-1') | |
class Controller1 { | |
@Get('index') | |
index() {} | |
} | |
@Module({ | |
imports: [], | |
controllers: [Controller1], | |
§ providers: [], | |
exports: [], | |
}) | |
class Module1 {} | |
@Controller('controller-2') | |
class Controller2 { | |
@Get('index') | |
index() {} | |
} | |
@Module({ | |
imports: [], | |
controllers: [Controller2], | |
providers: [], | |
exports: [], | |
}) | |
class Module2 {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment