import { Drash } from "https://deno.land/x/drash@v2.7.0/tests/deps.ts";
const { Request } = Drash;
Get a path parameter from the request based on the request's URL and the resource path it matched to.
Examples
Example 1
Example 1
// Assume a path for your resource is "/users/:id/:city?", and the request
// is "/users/2/".
const id = this.paramParam("id") // Returns 2
const city = this.queryParam("city") // Returns undefined