change column name from 'city' to 'region'

This commit is contained in:
Bilal Catic
2019-05-17 00:33:10 +02:00
parent 42505a7089
commit 4309bc709d
7 changed files with 49 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
const welcome = require('./app/controllers/welcome').getWelcome;
const { getRealEstateTypes, postRealEstateTypes} = require('./app/controllers/realEstateTypes');
const { getCity, postCity } = require('./app/controllers/cities');
const { getRegion, postRegion } = require('./app/controllers/regions');
const { getMunicipality, postMunicipality } = require('./app/controllers/municipalities');
let express = require("express");
@@ -115,8 +115,8 @@ app.get('/vrstanekretnine', getRealEstateTypes);
app.post('/vrstanekretnine/:request_id', postRealEstateTypes);
app.post('/vrstanekretnine', postRealEstateTypes);
app.get('/grad/:request_id', getCity);
app.post('/grad/:request_id', postCity);
app.get('/grad/:request_id', getRegion);
app.post('/grad/:request_id', postRegion);
app.get('/mjesto/:request_id', getMunicipality);
app.post('/mjesto/:request_id', postMunicipality);