aqueduct icon indicating copy to clipboard operation
aqueduct copied to clipboard

## The Request Object Code

Open binSaed opened this issue 5 years ago • 0 comments

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"]}));

binSaed avatar Apr 29 '20 05:04 binSaed