UNPKG

alapa

Version:

A cutting-edge web development framework designed to revolutionize the way developers build modern web applications.

20 lines (19 loc) 843 B
import { Router } from "."; import { ResourcefulOptions } from "../interface/resourceful"; import { RouteChain } from "../interface/route-chain"; export declare class ResourceRouteManager { private router; constructor(router: Router); resource(path: string, controller: any, option?: ResourcefulOptions): RouteChain; restfulResource(path: string, controller: any, options?: ResourcefulOptions): RouteChain; apiResource(path: string, controller: any, options?: ResourcefulOptions): RouteChain; resources(resources: { [route: string]: any; }, options: ResourcefulOptions): RouteChain; restfulResources(resources: { [route: string]: any; }, options: ResourcefulOptions): RouteChain; apiResources(resources: { [route: string]: any; }, options: ResourcefulOptions): RouteChain; }