Hello world is now in a view
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
const getVrstaNekretnine = (req,res) => {
|
const getVrstaNekretnine = (req,res) => {
|
||||||
res.send('<html><body><h1>Hamo</h1></body></html>');
|
res.render('vrsta_nekretnine');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<html><body><h1>Hamo</h1></body></html>
|
||||||
|
|||||||
4
index.js
4
index.js
@@ -15,6 +15,10 @@ app.use(bodyParser.urlencoded({ extended: true }));
|
|||||||
|
|
||||||
const port = process.env.PORT || 5000;
|
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) {
|
app.get("/api/sendnotifications", async function(req, res) {
|
||||||
let marketAlerts = await MarketAlert.findAll();
|
let marketAlerts = await MarketAlert.findAll();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user