Skip to main content

Built and signed on GitHub Actions

TypeScript Decorators for easy scaffolding API services with the oak framework (jsr:@oak/oak)

This package works with Cloudflare Workers, Node.js, Deno, Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
3 days ago (0.12.1)
function Get
Get(
path?: string,
openApiSpec?: OakOpenApiSpec,
): unknown

Decorator that should be used on the Controller Class Method for GET endpoints

Parameters

optional
path: string =
optional
openApiSpec: OakOpenApiSpec

Return Type

unknown

Add Package

deno add jsr:@dklab/oak-routing-ctrl

Import symbol

import { Get } from "@dklab/oak-routing-ctrl";

---- OR ----

Import directly with a jsr specifier

import { Get } from "jsr:@dklab/oak-routing-ctrl";

Add Package

npx jsr add @dklab/oak-routing-ctrl

Import symbol

import { Get } from "@dklab/oak-routing-ctrl";

Add Package

yarn dlx jsr add @dklab/oak-routing-ctrl

Import symbol

import { Get } from "@dklab/oak-routing-ctrl";

Add Package

pnpm dlx jsr add @dklab/oak-routing-ctrl

Import symbol

import { Get } from "@dklab/oak-routing-ctrl";

Add Package

bunx jsr add @dklab/oak-routing-ctrl

Import symbol

import { Get } from "@dklab/oak-routing-ctrl";