beatrun-courses-server-docker/routes/admin.js

14 lines
266 B
JavaScript
Raw Normal View History

2024-08-29 09:48:27 +05:00
const express = require("express"),
router = express.Router();
const { isAdmin } = require("../utils/functions");
router.get("/", isAdmin, async (req, res) => {
res.render("admin", {
user: req.user,
locals: req.app.locals,
});
});
module.exports = router;