Geocoding restricttions, added values for range finders, added confirmation email, and .env file
This commit is contained in:
7
index.js
7
index.js
@@ -1,5 +1,5 @@
|
||||
const welcome = require('./app/controllers/welcome').getWelcome;
|
||||
const { getRealEstateTypes, postRealEstateTypes} = require('./app/controllers/realEstateTypes');
|
||||
const { getRealEstateTypes, postRealEstateTypes } = require('./app/controllers/realEstateTypes');
|
||||
const { getRegion, postRegion } = require('./app/controllers/regions');
|
||||
const { getMunicipality, postMunicipality } = require('./app/controllers/municipalities');
|
||||
const { getSize, postSize } = require('./app/controllers/sizes');
|
||||
@@ -9,6 +9,7 @@ const { getQueryReview, postQueryReview } = require('./app/controllers/queryRevi
|
||||
const { getQuerySubmit, postQuerySubmit } = require('./app/controllers/querySubmit');
|
||||
const { getGoAgain } = require('./app/controllers/goAgain');
|
||||
const { getNeighborhood, postNeighborhood } = require('./app/controllers/neighborhoodMap');
|
||||
const { getUnsubscribe } = require('./app/controllers/unsubscribe');
|
||||
|
||||
let express = require("express");
|
||||
const path = require("path");
|
||||
@@ -106,7 +107,7 @@ app.post("/api/payforalert", (req, res) => {
|
||||
}
|
||||
};
|
||||
|
||||
tco.checkout.authorize(params, function(error, data) {
|
||||
tco.checkout.authorize(params, function (error, data) {
|
||||
if (error) {
|
||||
res.send(error.message);
|
||||
} else {
|
||||
@@ -146,6 +147,8 @@ app.post('/pregled/:request_id', postQueryReview);
|
||||
app.get('/posalji/:request_id', getQuerySubmit);
|
||||
app.post('/posalji/:request_id', postQuerySubmit);
|
||||
|
||||
app.get('/odjava/:request_id', getUnsubscribe);
|
||||
|
||||
app.get('/ponovo', getGoAgain);
|
||||
|
||||
app.use('/assets', express.static('./app/public'));
|
||||
|
||||
Reference in New Issue
Block a user