image_node/routes/index.js

16 lines
292 B
JavaScript
Raw Normal View History

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;