mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-13 15:25:39 +01:00
change to monorepo
This commit is contained in:
26
backend/src/app.module.ts
Normal file
26
backend/src/app.module.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { AuthModule } from './routes/auth/auth.module';
|
||||
import { UserEntity } from './collections/userdb/user.entity';
|
||||
import { ImageModule } from './routes/image/imageroute.module';
|
||||
import Config from './env';
|
||||
import { ImageEntity } from './collections/imagedb/image.entity';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
TypeOrmModule.forRoot({
|
||||
type: 'postgres',
|
||||
host: Config.database.host,
|
||||
port: Config.database.port,
|
||||
username: Config.database.username,
|
||||
password: Config.database.password,
|
||||
database: Config.database.database,
|
||||
synchronize: true,
|
||||
|
||||
entities: [UserEntity, ImageEntity],
|
||||
}),
|
||||
AuthModule,
|
||||
ImageModule,
|
||||
],
|
||||
})
|
||||
export class AppModule {}
|
||||
Reference in New Issue
Block a user