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 56d5a2e1b1
commit 5a11a7cc8e
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

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