I recently started learning node.js and now I'm stuck. am now building a basic authentication webpage including Login and Register. The res.sendfile method is not importing CSS files. I did not opt for view engines as I find it a bit difficult and messy. Is there any way to import CSS files here? Here is my code. Excuse me if I've kept it too long, as it is my first time asking a question here.
This is my login GET route where I've used res.sendFile.
login.get("/",(req,res)=>{
res.sendFile(path.join(__dirname, '/auth', 'login.html'));
})