I have studied nodejs backend development for a while and last time when my friend discussed an nodejs project with me.
He referred to a piece of code listed below as api. Here is how the code looks like:
app.get('/home',(res,req)=>{
res.sendFile('views/index.html', {root: __dirname });
});
So, is this piece of code an api or an endpoint or a route or just a get method in nodejs app?