Closed jchannon closed 4 years ago
Remove routeData as an arg.
routeData
RouteData can be used off the req object:
this.Get<GetActorById>("/actors/{id:int}", (req, res) => { var person = actorProvider.Get(req.RouteValues.As<int>("id")); return res.Negotiate(person); });
Remove
routeData
as an arg.RouteData can be used off the req object: