const express = require('express');
const LocalStorage = require('node-localstorage').LocalStorage;
const cueboys = require(global.root + '/cueboys');

const router = express.Router();

router.get('/', cueboys.middleware.isLoggedIn, (req, res) => {
  res.render('dashboard', {
    title: 'Dashboard',
    message: req.flash('message'),
    user: req.session.user,
    loggedIn: req.session.loggedIn
  });
});

module.exports = router;
