1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-15 09:08:06 -05:00
shimapan/app/routes/home.js

10 lines
323 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');
2019-01-02 16:47:18 -05:00
const authenticate = require('../util/auth/authenticateRequest');
2017-10-14 15:16:58 -04:00
2019-01-02 16:47:18 -05:00
router.get('/', authenticate(), function(req, res) {
2017-10-14 15:16:58 -04:00
res.sendFile(path.join(__dirname, '../../public/views', 'home.html'));
});
module.exports = router;