Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const router = require("express-promise-router").Router();
const db = require("../db");
// GET home page
router.get("/", (req, res) => {
res.send("Home");
});
module.exports = router;
const router = require("express-promise-router").Router();
const db = require("../db");
//Load in controllers
const user_controller = require("../controllers/userController");
router.get("/", user_controller.user_list);
module.exports = router;