2020-04-26 20:12:50 +02:00
|
|
|
let router = require("express").Router();
|
|
|
|
let isAuth = require("../user").isAuth;
|
|
|
|
|
|
|
|
|
|
|
|
router.get("/", isAuth, (req, res) => {
|
2020-04-27 20:58:31 +02:00
|
|
|
let invalidType = false;
|
|
|
|
if ("invalidType" in req.query) {
|
|
|
|
invalidType = true;
|
|
|
|
}
|
|
|
|
res.render("index", {invalidType: invalidType});
|
2020-04-26 20:12:50 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = router;
|
|
|
|
|