Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/momentum/core/controller-catalog.ts>ControllerCatalog

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
class ControllerCatalog
import { ControllerCatalog } from "https://deno.land/x/momentum@v0.8.2/core/controller-catalog.ts";

Static Properties

private
readonly
catalog: Map<Type, { metadata?: ControllerMetadata; actions: { [action: string]: { metadata?: ActionMetadata; parameters?: ParameterMetadata[]; }; }; }>

Static Methods

private
constructRoute(controllerMetadata: ControllerMetadata | undefined, actionMetadata: ActionMetadata | undefined)
private
getActionRegistration(type: ControllerClass, action: string)
getParameterMetadata(type: ControllerClass, action: string)
registerActionMetadata(
action: string,
metadata: Omit<ActionMetadata, "action">,
)