mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:34:03 -04:00
25 lines
816 B
TypeScript
25 lines
816 B
TypeScript
import { DomainModule } from '@app/domain';
|
|
import { InfraModule, SystemConfigEntity } from '@app/infra';
|
|
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { ListUsersCommand } from './commands/list-users.command';
|
|
import { DisablePasswordLoginCommand, EnablePasswordLoginCommand } from './commands/password-login';
|
|
import { PromptPasswordQuestions, ResetAdminPasswordCommand } from './commands/reset-admin-password.command';
|
|
|
|
@Module({
|
|
imports: [
|
|
DomainModule.register({
|
|
imports: [InfraModule],
|
|
}),
|
|
TypeOrmModule.forFeature([SystemConfigEntity]),
|
|
],
|
|
providers: [
|
|
ResetAdminPasswordCommand,
|
|
PromptPasswordQuestions,
|
|
EnablePasswordLoginCommand,
|
|
DisablePasswordLoginCommand,
|
|
ListUsersCommand,
|
|
],
|
|
})
|
|
export class AppModule {}
|