UNPKG

@o-galaxy/ether

Version:

Rest Api Framework

8 lines 351 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const express_1 = require("express"); function routerProcessor(routing) { return routing.reduce((router, [path, ...handlers]) => router.use(path, ...handlers), express_1.Router()); } exports.routerProcessor = routerProcessor; //# sourceMappingURL=router-processor.js.map