mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00
28 lines
856 B
TypeScript
28 lines
856 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import { Module } from '@nestjs/common';
|
|
import { PassportModule } from '@nestjs/passport';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { LoggerModule } from '../logger/logger.module';
|
|
import { User } from '../users/user.entity';
|
|
import { UsersModule } from '../users/users.module';
|
|
import { Identity } from './identity.entity';
|
|
import { IdentityService } from './identity.service';
|
|
import { LocalStrategy } from './local/local.strategy';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([Identity, User]),
|
|
UsersModule,
|
|
PassportModule,
|
|
LoggerModule,
|
|
],
|
|
controllers: [],
|
|
providers: [IdentityService, LocalStrategy],
|
|
exports: [IdentityService, LocalStrategy],
|
|
})
|
|
export class IdentityModule {}
|