From ae387ff6e866e91f40e0a83bb22b18d7f2987928 Mon Sep 17 00:00:00 2001 From: Remi R Date: Fri, 8 Dec 2023 10:51:49 +0100 Subject: [PATCH] fix: remove useless imports --- API-Project/src/controllers/ingredients.controller.ts | 1 - API-Project/src/controllers/recipes.controller.ts | 1 - API-Project/src/controllers/steps.controller.ts | 1 - API-Project/src/server.ts | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/API-Project/src/controllers/ingredients.controller.ts b/API-Project/src/controllers/ingredients.controller.ts index 900bbc5..42c83dd 100644 --- a/API-Project/src/controllers/ingredients.controller.ts +++ b/API-Project/src/controllers/ingredients.controller.ts @@ -1,5 +1,4 @@ import { Router } from "express"; -import { Exceptions } from "../utils/exception"; import { IngredientsGateway } from "../gateways/ingredients.gateway"; const IngredientsController = Router() diff --git a/API-Project/src/controllers/recipes.controller.ts b/API-Project/src/controllers/recipes.controller.ts index 9ce99fe..7ae8234 100644 --- a/API-Project/src/controllers/recipes.controller.ts +++ b/API-Project/src/controllers/recipes.controller.ts @@ -1,5 +1,4 @@ import { Router } from "express"; -import { Exceptions } from "../utils/exception"; import { RecipeGateway } from "../gateways/recipe.gateway"; diff --git a/API-Project/src/controllers/steps.controller.ts b/API-Project/src/controllers/steps.controller.ts index ce777ef..82bb7d0 100644 --- a/API-Project/src/controllers/steps.controller.ts +++ b/API-Project/src/controllers/steps.controller.ts @@ -1,5 +1,4 @@ import { Router } from "express"; -import { Exceptions } from "../utils/exception"; import { StepsGateway } from "../gateways/steps.gateway"; diff --git a/API-Project/src/server.ts b/API-Project/src/server.ts index c5febc4..a8da51d 100644 --- a/API-Project/src/server.ts +++ b/API-Project/src/server.ts @@ -15,7 +15,7 @@ app.use(cors({ })); app.get('/', (req, res) => { - res.json({ message: 'Hello from express and typescript!' }); + res.send({ message: 'Hello from express and typescript!' }); }); app.use('/ingredients', IngredientsController);