change price API endpoint route
All checks were successful
SimcoDash/simcompanies-dashboard/pipeline/head This commit looks good
All checks were successful
SimcoDash/simcompanies-dashboard/pipeline/head This commit looks good
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user