|
|
@ -1,17 +1,12 @@ |
|
|
|
import { forwardRef, Module } from '@nestjs/common'; |
|
|
|
import { forwardRef, Module } from '@nestjs/common'; |
|
|
|
import { PassportModule } from '@nestjs/passport'; |
|
|
|
import { PassportModule } from '@nestjs/passport'; |
|
|
|
import { GoogleStrategyProvider } from '~/strategies/google.strategy/google.strategy'; |
|
|
|
import { GoogleStrategyProvider } from '~/strategies/google.strategy/google.strategy'; |
|
|
|
import { GlobalModule } from '~/modules/global/global.module'; |
|
|
|
|
|
|
|
import { UsersService } from '~/services/users/users.service'; |
|
|
|
import { UsersService } from '~/services/users/users.service'; |
|
|
|
import { AuthController } from '~/controllers/auth/auth.controller'; |
|
|
|
import { AuthController } from '~/controllers/auth/auth.controller'; |
|
|
|
import { MetasModule } from '~/modules/metas/metas.module'; |
|
|
|
import { MetasModule } from '~/modules/metas/metas.module'; |
|
|
|
|
|
|
|
|
|
|
|
@Module({ |
|
|
|
@Module({ |
|
|
|
imports: [ |
|
|
|
imports: [PassportModule, forwardRef(() => MetasModule)], |
|
|
|
forwardRef(() => GlobalModule), |
|
|
|
|
|
|
|
PassportModule, |
|
|
|
|
|
|
|
forwardRef(() => MetasModule), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
controllers: [ |
|
|
|
controllers: [ |
|
|
|
...(process.env.NC_WORKER_CONTAINER !== 'true' ? [AuthController] : []), |
|
|
|
...(process.env.NC_WORKER_CONTAINER !== 'true' ? [AuthController] : []), |
|
|
|
], |
|
|
|
], |
|
|
|