news-ai-app / index.js
yashxx07's picture
Update index.js
bce283f verified
raw history blame
No virus
520 Bytes
const express = require("express");
//require('dotenv').config();
const { getNews, getNews2 } = require("./news");
const { updateEmailNews, sendEmail } = require("./emails");
const app = express();
const port = 7860;
app.listen(port, () => {
console.log(`Server running at http://localhost:${port}`)
});
app.get("/", (requset, response) => {
response.send({
STATUS: "OK"
});
});
app.get("/rss-parse", getNews);
app.get("/update-email-news", updateEmailNews);
app.get("/send-email", sendEmail);