18 lines
698 B
TypeScript
18 lines
698 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { UsersModule } from '../users/users.module';
|
|
import { HashingModule } from '@/common/modules/hashing/hashing.module';
|
|
import { RedisModule } from '@/common/modules/redis/redis.module';
|
|
import { AdminPanelAuthenticator } from './providers/admin-panel-auth.provider';
|
|
|
|
/**
|
|
* Wires the dependencies AdminPanelSetup resolves after bootstrap.
|
|
* The panel itself is mounted on the express instance (see admin-panel.setup.ts
|
|
* and main.ts), not through Nest controllers.
|
|
*/
|
|
@Module({
|
|
imports: [UsersModule, HashingModule, RedisModule],
|
|
providers: [AdminPanelAuthenticator],
|
|
exports: [AdminPanelAuthenticator],
|
|
})
|
|
export class AdminPanelModule {}
|