JaBa/dashboard/routes/docs.js
Jonny_Bro (Nikita) 26702fef6f yo
2023-05-25 14:02:51 +05:00

15 lines
No EOL
376 B
JavaScript

const express = require("express"),
router = express.Router();
router.get("/", function (req, res) {
res.set("Access-Control-Allow-Origin", "*");
res.render("docs", {
user: req.userInfos,
translate: req.translate,
currentURL: `${req.client.config.dashboard.baseURL}${req.originalUrl}`,
site: req.client.config.dashboard.baseURL,
});
});
module.exports = router;