mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-29 06:03:44 +00:00
Import new modules into AppModule
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
56d5a2e1b1
commit
5a11a7cc8e
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({
|
||||
imports: [],
|
||||
imports: [
|
||||
TypeOrmModule.forRoot({
|
||||
type: 'sqlite',
|
||||
database: './hedgedoc.sqlite',
|
||||
autoLoadEntities: true,
|
||||
synchronize: true,
|
||||
}),
|
||||
NotesModule,
|
||||
UsersModule,
|
||||
RevisionsModule,
|
||||
AuthorsModule,
|
||||
PublicApiModule,
|
||||
HistoryModule,
|
||||
],
|
||||
controllers: [],
|
||||
providers: []
|
||||
providers: [],
|
||||
})
|
||||
export class AppModule {
|
||||
}
|
||||
export class AppModule {}
|
||||
|
|
Loading…
Reference in a new issue