diff --git a/app/controllers/vrsta_nekretnine.js b/app/controllers/vrsta_nekretnine.js
index 070899f..cb34ae5 100644
--- a/app/controllers/vrsta_nekretnine.js
+++ b/app/controllers/vrsta_nekretnine.js
@@ -1,5 +1,5 @@
const getVrstaNekretnine = (req,res) => {
- res.send('
Hamo
');
+ res.render('vrsta_nekretnine');
}
module.exports = {
diff --git a/app/views/vrsta_nekretnine.ejs b/app/views/vrsta_nekretnine.ejs
index e69de29..4e01020 100644
--- a/app/views/vrsta_nekretnine.ejs
+++ b/app/views/vrsta_nekretnine.ejs
@@ -0,0 +1 @@
+Hamo
diff --git a/index.js b/index.js
index 34dea52..ac3d953 100644
--- a/index.js
+++ b/index.js
@@ -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();