I am trying to send an html page with express from the node.js server but for some reason I cannot add an image that is a file This is the code I tried:
const express = require("express");
const app = express();
app.use((req, res) => {
res.send(`<body><img src='test.png'></body>`)
});
Would appreciate help.