add price screen

This commit is contained in:
Bilal Catic
2019-05-17 11:32:41 +02:00
parent b15295bfe6
commit c652a306db
6 changed files with 93 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ const { getRegion, postRegion } = require('./app/controllers/regions');
const { getMunicipality, postMunicipality } = require('./app/controllers/municipalities');
const { getSize, postSize } = require('./app/controllers/sizes');
const { getGardenSize, postGardenSize } = require('./app/controllers/gardenSizes');
const { getPrice, postPrice } = require('./app/controllers/prices');
let express = require("express");
const path = require("path");
@@ -129,6 +130,9 @@ app.post('/povrsina/:request_id', postSize);
app.get('/okucnica/:request_id', getGardenSize);
app.post('/okucnica/:request_id', postGardenSize);
app.get('/cijena/:request_id', getPrice);
app.post('/cijena/:request_id', postPrice);
app.use('/assets', express.static('./app/public'));