Import new modules into AppModule

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-07-25 20:26:00 +02:00
parent 69afdd3b05
commit 6e7d98502d
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -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 {}
}