UNPKG

@chubbyjs/chubbyjs-framework

Version:

A minimal, highly performant middleware PSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

12 lines (11 loc) 304 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class CallbackMiddleware { constructor(callback) { this.callback = callback; } async process(request, handler) { return this.callback(request, handler); } } exports.default = CallbackMiddleware;