From 93a811fb08eae67bbea750045aba4cf7b695ca03 Mon Sep 17 00:00:00 2001 From: Oliver Boehlk Date: Fri, 29 May 2020 19:18:15 +0200 Subject: [PATCH] change price API endpoint route --- backend/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/index.js b/backend/index.js index c020d78..b400f1f 100644 --- a/backend/index.js +++ b/backend/index.js @@ -199,7 +199,7 @@ app.delete("/API/user/logout", function (req, res) { return res.status(status.OK).send("logout success"); }); -app.get('/API/day', function (req, res) { +app.get('/API/price/day', function (req, res) { const kind = parseInt(req.query.kind); if (Number.isInteger(kind)) { //Mock Data: @@ -226,7 +226,7 @@ app.get('/API/day', function (req, res) { return res.status(status.BAD_REQUEST).send("invalid data provided"); }); -app.get('/API/week', function (req, res) { +app.get('/API/price/week', function (req, res) { const kind = parseInt(req.query.kind); if (Number.isInteger(kind)) { //Mock Data: @@ -259,7 +259,7 @@ app.get('/API/week', function (req, res) { return res.status(status.BAD_REQUEST).send("invalid data provided"); }); -app.get('/API/month', function (req, res) { +app.get('/API/price/month', function (req, res) { const kind = parseInt(req.query.kind); if (Number.isInteger(kind)) { //Mock Data: