Added a new model - does not work yet

This commit is contained in:
Senad Uka
2019-04-16 06:27:11 +02:00
parent 2380c85122
commit c534c1ee34
5 changed files with 784 additions and 3 deletions

View File

@@ -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}!`));