Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/src/decorators/mod.ts>Params

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
function Params
import { Params } from "https://deno.land/x/deno_nest@v3.4.0/src/decorators/mod.ts";

Get params by router

Examples

such as http://localhost:1000/api/role/info/114, then params is {id: 114}

Parameters

optional
key: string