File size: 520 Bytes
03adad0
 
 
bce283f
 
03adad0
 
 
9981370
03adad0
 
 
 
 
 
 
 
 
 
 
bce283f
03adad0
bce283f
03adad0
bce283f
03adad0
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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);