0
Hello! I was wondering if there’s any way I can get a JSON file to the Front End using Express...
I’m using this method:
app.use(express.static(__dirname + '/public'));
app.get("/", (req, res) => {
res.sendFile(__dirname + "/index.html")
})
And, I want to know how to send a . JSON to the front end... In case, it would "receive" using normal Javascript...
Heed I don’t want to use any library or Framework. Only Express.