From 3791013816eb24c5cd6154aa47e22942f9166c3b Mon Sep 17 00:00:00 2001 From: Radek <104318242+radekm2000@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:58:03 +0200 Subject: [PATCH] delete images directory --- server/ecommerce/src/auth/utils/GoogleStrategy.ts | 3 ++- server/ecommerce/src/images/images.controller.ts | 4 ---- server/ecommerce/src/images/images.module.ts | 12 ------------ server/ecommerce/src/images/images.service.ts | 4 ---- 4 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 server/ecommerce/src/images/images.controller.ts delete mode 100644 server/ecommerce/src/images/images.module.ts delete mode 100644 server/ecommerce/src/images/images.service.ts diff --git a/server/ecommerce/src/auth/utils/GoogleStrategy.ts b/server/ecommerce/src/auth/utils/GoogleStrategy.ts index 7415c78..143e954 100644 --- a/server/ecommerce/src/auth/utils/GoogleStrategy.ts +++ b/server/ecommerce/src/auth/utils/GoogleStrategy.ts @@ -12,7 +12,8 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') { super({ clientID: process.env.CLIENT_ID, clientSecret: process.env.CLIENT_SECRET, - callbackURL: 'http://localhost:3000/auth/google/redirect', + callbackURL: + 'https://exquisite-pasca-338883.netlify.app/auth/google/redirect', scope: ['profile', 'email'], } as StrategyOptions); } diff --git a/server/ecommerce/src/images/images.controller.ts b/server/ecommerce/src/images/images.controller.ts deleted file mode 100644 index dec1e5a..0000000 --- a/server/ecommerce/src/images/images.controller.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Controller } from '@nestjs/common'; - -@Controller('images') -export class ImagesController {} diff --git a/server/ecommerce/src/images/images.module.ts b/server/ecommerce/src/images/images.module.ts deleted file mode 100644 index 792fcf7..0000000 --- a/server/ecommerce/src/images/images.module.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Module } from '@nestjs/common'; -import { ImagesService } from './images.service'; -import { ImagesController } from './images.controller'; -import { TypeOrmModule } from '@nestjs/typeorm'; -import { Image } from 'src/utils/entities/image.entity'; - -@Module({ - providers: [ImagesService], - controllers: [ImagesController], - imports: [TypeOrmModule.forFeature([Image])], -}) -export class ImagesModule {} diff --git a/server/ecommerce/src/images/images.service.ts b/server/ecommerce/src/images/images.service.ts deleted file mode 100644 index 5cbc206..0000000 --- a/server/ecommerce/src/images/images.service.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Injectable } from '@nestjs/common'; - -@Injectable() -export class ImagesService {}