mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-23 01:16:43 +00:00
.. | ||
src | ||
package.json | ||
README.md | ||
tsconfig.json |
@steedos/router
staticRouter
提供 express.Router() 单例
使用方式
const SteedosRouter = require('@steedos/router');
const router = SteedosRouter.staticRouter();
router.get('/service/api/apps/menus', async function (req: any, res: any) {
...
res.status(200).send({ok: 1});
});
exports.default = router;