change column name from 'city' to 'region'
This commit is contained in:
6
index.js
6
index.js
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user