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

2.7.10 • 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;

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @steedos/router

    Weekly Downloads

    12,766

    Version

    2.7.10

    License

    ISC

    Unpacked Size

    42.1 kB

    Total Files

    8

    Last publish

    Collaborators

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