| 1 | import { Global, Module } from '@nestjs/common' |
| 2 | import { UserController } from './user.controller' |
| 3 | import { UserService } from './user.service' |
| 4 | |
| 5 | @Global() |
| 6 | @Module({ |
| 7 | controllers: [UserController], |
| 8 | providers: [UserService], |
| 9 | exports: [UserService], |
| 10 | }) |
| 11 | export class UserModule { } |
| 12 |