Law-things
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
|
||||
/* GET home page. */
|
||||
/* GET home page */
|
||||
router.get('/', function(req, res, next) {
|
||||
var app = req.app
|
||||
var db = app.get('DB')
|
||||
|
||||
db.getItemList((items)=>{
|
||||
res.render('index', { title: 'Rent For Camp', items: items })
|
||||
res.render('index', { title: 'RentFor.Camp', items: items })
|
||||
})
|
||||
});
|
||||
|
||||
@@ -22,4 +22,28 @@ router.get('/article/show/:identifier', function(req, res, next) {
|
||||
})
|
||||
});
|
||||
|
||||
/* GET imprint */
|
||||
router.get('/imprint/', function(req, res, next) {
|
||||
var app = req.app
|
||||
var db = app.get('DB')
|
||||
|
||||
res.render('imprint', { title: 'RentFor.Camp Impressum' })
|
||||
});
|
||||
|
||||
/* GET privacy */
|
||||
router.get('/privacy/', function(req, res, next) {
|
||||
var app = req.app
|
||||
var db = app.get('DB')
|
||||
|
||||
res.render('privacy', { title: 'RentFor.Camp Datenschutz' })
|
||||
});
|
||||
|
||||
/* GET terms and conditions */
|
||||
router.get('/terms/', function(req, res, next) {
|
||||
var app = req.app
|
||||
var db = app.get('DB')
|
||||
|
||||
res.render('terms', { title: 'RentFor.Camp AGB' })
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user