Thursday, 1 June 2017

Weirdest problem

Originally I have thisapp.get("/", function(req, resp) { resp.sendFile(pF + "/index.html"); } Then I was messing with pug and changed it toapp.get("/", function(req, resp) { resp.render("index", { // objects }); } I'm not even sure if it rendered anything, but now, it just stays at index.html. Even if I doapp.get("/", function(req, resp) { console.log('hi'); } It doesn't nothing after restarting my app. It still routes me to index.html. WTF is going on? In another app.get, I can change the route. Just specifically this one, it's locked to index.html.

Submitted June 01, 2017 at 01:17PM by eggtart_prince

No comments:

Post a Comment