Added a new model - does not work yet
This commit is contained in:
4
index.js
4
index.js
@@ -1,5 +1,6 @@
|
||||
const dobrodosli = require('./app/controllers/dobrodosli').getDobrodosli;
|
||||
const getVrstaNekretnine = require('./app/controllers/vrsta_nekretnine').getVrstaNekretnine;
|
||||
const postVrstaNekretnine = require('./app/controllers/vrsta_nekretnine').postVrstaNekretnine;
|
||||
|
||||
let express = require("express");
|
||||
const path = require("path");
|
||||
@@ -107,7 +108,8 @@ app.post("/api/payforalert", function(request, response) {
|
||||
});
|
||||
|
||||
app.get('/', dobrodosli);
|
||||
app.get('/vrstanekretnine', getVrstaNekretnine);
|
||||
app.get('/vrstanekretnine', getVrstaNekretnine);
|
||||
app.post('/vrstanekretnine', postVrstaNekretnine);
|
||||
app.use('/assets', express.static('./app/public'))
|
||||
|
||||
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
|
||||
|
||||
Reference in New Issue
Block a user