1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-30 22:41:47 -05:00
shimapan/app/routes/panel.js

10 lines
314 B
JavaScript
Raw Normal View History

2018-08-14 05:14:53 -04:00
const express = require('express');
const router = express.Router();
const path = require('path');
const requireAuth = require('../util/auth').requireAuth;
2017-10-11 20:26:07 -04:00
2018-08-14 05:14:53 -04:00
router.get('/', requireAuth(), function(req, res) {
2017-10-11 20:26:07 -04:00
res.sendFile(path.join(__dirname, '../../public/views', 'panel.html'));
});
module.exports = router;