mirror of
https://github.com/immich-app/immich.git
synced 2025-01-25 05:02:46 +01:00
21 lines
462 B
TypeScript
21 lines
462 B
TypeScript
|
import { DynamicModule, Global, Module, ModuleMetadata, Provider } from '@nestjs/common';
|
||
|
import { UserService } from './user';
|
||
|
|
||
|
const providers: Provider[] = [
|
||
|
//
|
||
|
UserService,
|
||
|
];
|
||
|
|
||
|
@Global()
|
||
|
@Module({})
|
||
|
export class DomainModule {
|
||
|
static register(options: Pick<ModuleMetadata, 'imports'>): DynamicModule {
|
||
|
return {
|
||
|
module: DomainModule,
|
||
|
imports: options.imports,
|
||
|
providers: [...providers],
|
||
|
exports: [...providers],
|
||
|
};
|
||
|
}
|
||
|
}
|