Handle nav-bar

This commit is contained in:
Nedim Uka
2019-07-11 14:25:38 +02:00
parent e305c547e1
commit a6bd63b7b8
27 changed files with 84 additions and 69 deletions

View File

@@ -2,11 +2,13 @@
const { currentRERequest } = require('../helpers/url');
const getUnsubscribe = async (req, res) => {
const title = "Uspješno ste se odjavili"
const request = await currentRERequest(req);
request.subscribed = false;
await request.save();
res.render('unsubscribe', { nextStep: '/vrstanekretnine' });
res.render('unsubscribe', { nextStep: '/vrstanekretnine', title });
};