Skip to main content
Module

x/alosaur/src/metadata/controller.ts

Alosaur - Deno web framework with many decorators
Go to Latest
File
import { AreaMetadataArgs } from "./area.ts";import { ProviderDeclaration } from "../types/provider-declaration.ts";import { DependencyContainer } from "../injection/index.ts";import { HookMetadataArgs } from "./hook.ts";import { ActionMetadataArgs } from "./action.ts";
/** * Controller metadata used to storage information about registered controller. */export interface ControllerMetadataArgs { area?: AreaMetadataArgs;
/** * Indicates object which is used by this controller. */ object: Function;
/** * @Deprecated * Indicates object which is used by this controller. */ target: Function;
/** * Base route for all actions registered in this controller. */ route?: string;
/** * Type, vase default */ type: any;
/** * Providers declared in controller */ providers?: ProviderDeclaration[];
/** * Container of controller if providers is declared */ container?: DependencyContainer;
/** * Hooks for controller */ hooks: HookMetadataArgs<any, any>[];
/** * Actions of controller */ actions?: ActionMetadataArgs[];}