From 0c1f79aed411d5393870cade3b08da3aceca5630 Mon Sep 17 00:00:00 2001 From: Damla Koksal Date: Sat, 30 Oct 2021 11:20:27 +0300 Subject: [PATCH] [#13] feat: set landing page response --- server/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app.js b/server/app.js index 6e08c5d..4187b76 100644 --- a/server/app.js +++ b/server/app.js @@ -24,8 +24,8 @@ app.get("/", async (req, res) => { res.json({ endPoints: [ { products: [{ all: "/products" }, { id: "products:id" }] }, - { brands: [{ all: "/brands" }, { id: "brands:id" }] }, - { colors: [{ all: "/brands" }, { id: "brands:id" }] }, + { brands: [{ all: "/brands" }, { productIds: "brands/:name" }] }, + { colors: [{ all: "/colors" }, { productIds: "colors/:name" }] }, ], }); });