1. 首页
  2. 数据库
  3. 其它
  4. 微型路由器:Zeit的微型微型功能路由器 源码

微型路由器:Zeit的微型微型功能路由器 源码

上传者: 2021-02-15 21:59:39上传 ZIP文件 62.03KB 热度 6次
:station: 微型路由器-ZEIT功能路由器 :OK_hand: 产品特点 小小的。 只需几行代码。 功能。 使用函数编写您的http方法。 异步设计用于async/await :laptop_computer: 用法 安装为项目依赖项: $ yarn add microrouter 然后,您可以在微服务中定义路由: const { send } = require ( 'micro' ) const { router , get } = require ( 'microrouter' ) const hello = ( req , res ) => send ( res
下载地址
用户评论