skip to Main Content

Javascript – Stuck on express routing

app.js file // home route app.get("/home", async(req, res)=>{ let allCards = await Card.find({}); let skills = await Skill.find({}); res.render("index", {allCards, skills}); }) // add new skill route app.get("/home/newskill", (req, res)=>{ res.render("newskill"); }); // submiting a new skill to the database…

VIEW QUESTION
Back To Top
Search