aqueduct
aqueduct copied to clipboard
## The Request Object Code
old code router.route("/path").linkFunction((req) { req.attachments["key"] = "value"; //here u forget to return reqast }).linkFunction((req) { return Response.ok({"key": req.attachments["value"]});//in first linkFunction u add key with name "key" });
router
.route("/path")
.linkFunction((req) => req..attachments["key"] = "value")
.linkFunction((req) => Response.ok({"key": req.attachments["key"]}));