JaBa/dashboard/routes/docs.js
Jonny_Bro (Nikita) 9bb4d00a0a fix cors
2023-05-25 14:07:48 +05:00

13 lines
No EOL
329 B
JavaScript

const express = require("express"),
router = express.Router();
router.get("/", function (req, res) {
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;