From 5a11a7cc8e107bd4e10a0f92c8cb42c76ef6b676 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 25 Jul 2020 20:26:00 +0200 Subject: [PATCH] Import new modules into AppModule Signed-off-by: David Mehren --- src/app.module.ts | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/app.module.ts b/src/app.module.ts index 41d39dcea..768df01a8 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -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 {}