UNPKG

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

16 lines (15 loc) 426 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonHandler = void 0; const config_js_1 = require("./config.js"); class CommonHandler { notFound(callback) { config_js_1.GlobalConfig.notFound = callback; return this; } onError(callback) { config_js_1.GlobalConfig.onError = callback; return this; } } exports.CommonHandler = CommonHandler;