Hello world is now in a view

This commit is contained in:
Senad Uka
2019-03-26 05:09:53 +01:00
parent da241c8200
commit a6fdf259a0
3 changed files with 6 additions and 1 deletions

View File

@@ -15,6 +15,10 @@ app.use(bodyParser.urlencoded({ extended: true }));
const port = process.env.PORT || 5000;
app.set('views', path.join(__dirname, '/app/views'));
app.set('view engine', 'ejs');
app.get("/api/sendnotifications", async function(req, res) {
let marketAlerts = await MarketAlert.findAll();