unpkg/modules/utils/createRouter.js

8 lines
169 B
JavaScript

import express from 'express';
export default function createRouter(configureRouter) {
const router = express.Router();
configureRouter(router);
return router;
}