verusd-web
Version:
A Verus Blockchain library that enables a bi-directional communication with the Verus and other Verus PBaas chains.
18 lines (17 loc) • 559 B
TypeScript
import { Express, Request, Response } from 'express';
type RouteController = (req: Request, res: Response) => void;
export interface RouteConfig {
method: string;
apiVersion: number;
route: string;
controller: RouteController;
}
export declare class RestApiRoutesService {
private static apiToken;
private static readonly allowedMethods;
static generate(app: Express, routeConfigs?: RouteConfig[], apiToken?: string): void;
private static setRoute;
private static checkToken;
private static addMiddleware;
}
export {};