@steedos/router
TypeScript icon, indicating that this package has built-in type declarations

2.7.0 • Public • Published

@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;

Readme

Keywords

none

Package Sidebar

Install

npm i @steedos/router

Weekly Downloads

1,801

Version

2.7.0

License

ISC

Unpacked Size

8.61 kB

Total Files

8

Last publish

Collaborators

  • steedos-zhuangjianguo
  • steedos-baozhoutao
  • chenzhipei
  • yinlianghui
  • steedos-sunhaolin