tezx
Version:
TezX is a high-performance, lightweight JavaScript framework designed for speed, scalability, and flexibility. It enables efficient routing, middleware management, and static file serving with minimal configuration. Fully compatible with Node.js, Deno, an
11 lines (10 loc) • 404 B
TypeScript
import { Router } from "../core/router.js";
import { StaticServeOption } from "../types/index.js";
export declare const mimeTypes: {
[key: string]: string;
};
export declare const defaultMimeType = "application/octet-stream";
export declare function getFiles(dir: string, basePath: string | undefined, ref: Router<any>, option: StaticServeOption): Promise<{
file: string;
path: string;
}[]>;