微型路由器:Zeit的微型微型功能路由器 源码
: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
下载地址
用户评论