Geocoding restricttions, added values for range finders, added confirmation email, and .env file

This commit is contained in:
Nedim Uka
2019-06-03 10:34:59 +02:00
parent d6e999fcf1
commit 8f9e3ae46a
14 changed files with 318 additions and 125 deletions

View File

@@ -1,6 +1,8 @@
const { currentRERequest } = require('../helpers/url');
const getPrice = (req,res) => {
const unit = " KM"
const rangeFrom = {
min : 1000,
max : 250000,
@@ -16,7 +18,7 @@ const getPrice = (req,res) => {
}
res.render('price', {rangeFrom, rangeTo });
res.render('price', {rangeFrom, rangeTo, unit });
};
const postPrice = async (req, res) => {