this is to make sure that headers such as Content-Type are
automatically set as required (which is needed for Twitter to properly
create a card for the content).
The express documentation actually says about end: If you need to respond with data, instead use methods such as res.send() and res.json().
this is to make sure that headers such as
Content-Type
are automatically set as required (which is needed for Twitter to properly create a card for the content).The express documentation actually says about
end
:If you need to respond with data, instead use methods such as res.send() and res.json().