mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-26 23:24:58 +05:00
17 lines
No EOL
431 B
JavaScript
17 lines
No EOL
431 B
JavaScript
const express = require("express"),
|
|
CheckAuth = require("../auth/CheckAuth"),
|
|
router = express.Router();
|
|
|
|
router.get("/", CheckAuth, async (req, res) => {
|
|
res.redirect("/selector");
|
|
});
|
|
|
|
router.get("/selector", CheckAuth, async(req, res) => {
|
|
res.render("selector", {
|
|
user: req.userInfos,
|
|
translate: req.translate,
|
|
currentURL: `${req.client.config.dashboard.baseURL}/${req.originalUrl}`
|
|
});
|
|
});
|
|
|
|
module.exports = router; |