tspace-spear
Version:
tspace-spear is a lightweight, high-performance API framework for Node.js that leverages the native HTTP server and supports uWebSockets.js (C++) for maximum speed and efficiency.
17 lines (16 loc) • 355 B
TypeScript
type Route = {
method: string;
path: string;
body: string;
params: string;
query: string;
files: string;
response: string;
};
type Options = {
folder: string;
name: RegExp;
output?: string;
};
export declare const generateRoutes: (globalPrefix: string, options: Options) => Promise<Route[] | undefined>;
export {};