the hierarchy of my files looks something like:
BACKEND(COMPLETE)
->Routers
->userrouter.js
->login.html
I wanted the access of my login.html file in userrouter.js for which I copied the Path(absolute) of the login.html file.
But I am getting this error:
path must be absolute or specify root to res.sendFile()
My Code:
function loginUser(req,res)
{
res.sendFile('C:\Users\ASUS\Desktop\backend(complete)\login.html');
res.end();
}