Make backend and frontend work together

This commit is contained in:
rubikscraft
2022-02-23 21:06:07 +01:00
parent cba819b64d
commit b03f98a6b8
26 changed files with 259 additions and 85 deletions

View File

@@ -1,12 +1,14 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AuthModule } from './routes/auth/auth.module';
import { AuthModule } from './routes/api/auth/auth.module';
import { UserEntity } from './collections/userdb/user.entity';
import { ImageModule } from './routes/image/imageroute.module';
import { ServeStaticModule } from '@nestjs/serve-static';
import Config from './env';
import { ImageEntity } from './collections/imagedb/image.entity';
const backendRoutes = ['i', 'api'];
@Module({
imports: [
TypeOrmModule.forRoot({