mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 03:33:58 -05:00
feat: add identity module
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
df10ed92e3
commit
1c52ad69a6
2 changed files with 30 additions and 0 deletions
|
@ -25,6 +25,7 @@ import { FrontendConfigModule } from './frontend-config/frontend-config.module';
|
||||||
import { FrontendConfigService } from './frontend-config/frontend-config.service';
|
import { FrontendConfigService } from './frontend-config/frontend-config.service';
|
||||||
import { GroupsModule } from './groups/groups.module';
|
import { GroupsModule } from './groups/groups.module';
|
||||||
import { HistoryModule } from './history/history.module';
|
import { HistoryModule } from './history/history.module';
|
||||||
|
import { IdentityModule } from './identity/identity.module';
|
||||||
import { LoggerModule } from './logger/logger.module';
|
import { LoggerModule } from './logger/logger.module';
|
||||||
import { MediaModule } from './media/media.module';
|
import { MediaModule } from './media/media.module';
|
||||||
import { MonitoringModule } from './monitoring/monitoring.module';
|
import { MonitoringModule } from './monitoring/monitoring.module';
|
||||||
|
@ -81,6 +82,7 @@ const routes: Routes = [
|
||||||
MediaModule,
|
MediaModule,
|
||||||
AuthModule,
|
AuthModule,
|
||||||
FrontendConfigModule,
|
FrontendConfigModule,
|
||||||
|
IdentityModule,
|
||||||
],
|
],
|
||||||
controllers: [],
|
controllers: [],
|
||||||
providers: [FrontendConfigService],
|
providers: [FrontendConfigService],
|
||||||
|
|
28
src/identity/identity.module.ts
Normal file
28
src/identity/identity.module.ts
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
/*
|
||||||
|
* 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 {}
|
Loading…
Reference in a new issue