Skip to main content
Module

x/momentum/core/decorators/post.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 POST action */export function Post(): MethodDecorator;/** * Decorator that marks a controller method as a POST action with a route */export function Post(route: string): MethodDecorator;export function Post(route?: string): MethodDecorator { return createActionDecorator("post", route);}