UNPKG

lux-framework

Version:

Build scalable, Node.js-powered REST APIs with almost no code.

25 lines (20 loc) 543 B
// @flow import type Route from './route'; import type Controller from '../controller'; import type { FreezeableSet } from '../freezeable'; export type Router$opts = { controller: Controller; controllers: Map<string, Controller>; routes(): void; }; type Router$NS$content = | Route | Router$Namespace; export interface Router$Namespace extends FreezeableSet<Router$NS$content> { name: string; path: string; isRoot: boolean; namespace: Router$Namespace; controller: Controller; controllers: Map<string, Controller>; }