// get_XXXX or post_XXXX define Get and Post endpoints // Both get passed a Request and a Response Object function get_Hello(req, res) { res.status(200); res.send({ msg : "Hello " + req.query.get("name") + " try looking at the examples."}) }
Endpoint URL:
Hello?name=Fellow+Developer
POST Data:
Response: