When I send a request to
app.get("/auth/login", (req, res) => {
res.sendFile(path.join(__dirname + "/authentication/login.html"));
});
using
fetch("/auth/login", {
method: "GET"
});
I'm able to receive the HTML page as a response. However, how can I properly display it on the screen without using document.write? Additionally, should route redirections be handled on the client-side or server-side?