Skip to main content
Module

x/momentum/core/decorators/get.ts

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
File
import { createActionDecorator } from "./create-action-decorator.ts";
/** * Decorator that marks a controller method as a GET action */export function Get(): MethodDecorator;/** * Decorator that marks a controller method as a GET action with a route */export function Get(route: string): MethodDecorator;export function Get(route?: string): MethodDecorator { return createActionDecorator("get", route);}