minor fix
This commit is contained in:
@@ -12,7 +12,7 @@ app.use(bodyParser.urlencoded({ extended: true }));
|
||||
|
||||
const port = process.env.PORT || 5000;
|
||||
|
||||
app.get("/api/sendnotifications", async function(req, res) {
|
||||
app.get("/sendnotifications", async function(req, res) {
|
||||
let marketAlerts = await MarketAlert.findAll();
|
||||
|
||||
let lastDateUpdate = await Promise.all(
|
||||
@@ -33,7 +33,7 @@ app.get("/api/sendnotifications", async function(req, res) {
|
||||
);
|
||||
});
|
||||
|
||||
app.get("/api/:url", async (req, res) => {
|
||||
app.get("/items/:url", async (req, res) => {
|
||||
let url =
|
||||
"https://www.olx.ba/pretraga?" +
|
||||
req.params.url +
|
||||
@@ -45,7 +45,7 @@ app.get("/api/:url", async (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
app.post("/api/marketalerts", function(req, res) {
|
||||
app.post("/marketalerts", function(req, res) {
|
||||
const { email, last_date, olx_url } = req.body;
|
||||
sequelize.sync().then(() =>
|
||||
MarketAlert.create({
|
||||
|
||||
Reference in New Issue
Block a user