mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Import new modules into AppModule
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
69afdd3b05
commit
6e7d98502d
1 changed files with 24 additions and 5 deletions
|
@ -1,9 +1,28 @@
|
||||||
import { Module } from '@nestjs/common'
|
import { Module } from '@nestjs/common';
|
||||||
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
|
import { PublicApiModule } from './api/public/public-api.module';
|
||||||
|
import { NotesModule } from './notes/notes.module';
|
||||||
|
import { UsersModule } from './users/users.module';
|
||||||
|
import { RevisionsModule } from './revisions/revisions.module';
|
||||||
|
import { AuthorsModule } from './authors/authors.module';
|
||||||
|
import { HistoryModule } from './history/history.module';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [],
|
imports: [
|
||||||
|
TypeOrmModule.forRoot({
|
||||||
|
type: 'sqlite',
|
||||||
|
database: './hedgedoc.sqlite',
|
||||||
|
autoLoadEntities: true,
|
||||||
|
synchronize: true,
|
||||||
|
}),
|
||||||
|
NotesModule,
|
||||||
|
UsersModule,
|
||||||
|
RevisionsModule,
|
||||||
|
AuthorsModule,
|
||||||
|
PublicApiModule,
|
||||||
|
HistoryModule,
|
||||||
|
],
|
||||||
controllers: [],
|
controllers: [],
|
||||||
providers: []
|
providers: [],
|
||||||
})
|
})
|
||||||
export class AppModule {
|
export class AppModule {}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue