@hapiness/core
Version:
Project to have a HapiJS (https://hapijs.com/) based framework to create easier NodeJS back-end with some awesome features
15 lines (14 loc) • 437 B
TypeScript
import { CoreDecorator, Type } from '../../core/decorators';
import { RouteConfig } from './interfaces';
export interface Route {
path: string;
method: string | string[];
config?: RouteConfig;
providers?: Array<Type<any> | any>;
labels?: string | string[];
}
export declare const Route: CoreDecorator<Route>;
export interface Lifecycle {
event: string;
}
export declare const Lifecycle: CoreDecorator<Lifecycle>;