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

@@ -1,5 +1,5 @@
const getVrstaNekretnine = (req,res) => {
res.send('<html><body><h1>Hamo</h1></body></html>');
res.render('vrsta_nekretnine');
}
module.exports = {

View File

@@ -0,0 +1 @@
<html><body><h1>Hamo</h1></body></html>

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();