fipamo/brain/routes/front/index.js

18 lines
525 B
JavaScript
Raw Normal View History

2018-10-31 17:00:31 +01:00
var express = require('express');
var router = express.Router();
//var Models = require('../../models');
var config = require('../../../config/site-settings.json');
module.exports = function() {
2018-10-31 17:00:31 +01:00
//--------------------------
// Index
//--------------------------
router.get('/:page?', function(req, res) {
res.render(config.theme + '/index', {
theme: config.theme,
title: config.title,
user_status: 'What up, random person'
});
2018-10-31 17:00:31 +01:00
});
return router;
};