Step 5: Routing
What is an endpoint?
1. Create your own endpoints and send different responses
app.get("/", function (req, res) {
res.send("Hello World!");
});
app.get("/chocolate", function (req, res) {
res.send("Mm chocolate :O");
});Last updated