What is the right way to set path?
in my app i this code for i use set path for sending file.
app.get(\'/\',function(req, res){//get,put,post,delete
Short Answer : replace res.sendfile with res.sendFile .i will give you a example with code :
app.get("/" ,function(req,resp){ resp.sendfile(__dirname + "/index.html")})
replace with this app.get("/" ,function(req,resp){ resp.sendFile(__dirname + "/index.html")})
replace with this