UNPKG

lux-framework

Version:

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

17 lines (14 loc) 335 B
// @flow import type Controller from '../../controller'; import type { Request, Response, Request$method } from '../../server'; export type Route$type = | 'custom' | 'member' | 'collection'; export type Route$opts = { type: Route$type; path: string; action: string; method: Request$method; controller: Controller; };