1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-30 18:49:42 +02:00
codex.docs/src/routes/home.js

11 lines
296 B
JavaScript
Raw Normal View History

const express = require('express');
const verifyToken = require('./middlewares/token');
const router = express.Router();
/* GET home page. */
router.get('/', verifyToken, async (req, res) => {
res.render('pages/index', { isAuthorized: res.locals.isAuthorized });
});
module.exports = router;