image_node/routes/index.js

11 lines
178 B
JavaScript

let router = require("express").Router();
let isAuth = require("../user").isAuth;
router.get("/", isAuth, (req, res) => {
res.render("index");
});
module.exports = router;