diff --git a/ch6-web/ch6-02-router.md b/ch6-web/ch6-02-router.md index c38a987..7146cf8 100644 --- a/ch6-web/ch6-02-router.md +++ b/ch6-web/ch6-02-router.md @@ -2,7 +2,7 @@ 在常见的 web 框架中,router 是必备的组件。golang 圈子里 router 也时常被称为 http 的 multiplexer。在上一节中我们通过对 Burrow 代码的简单学习,已经知道如何用 http 标准库中内置的 mux 来完成简单的路由功能了。如果开发 web 系统对路径中带参数没什么兴趣的话,用 http 标准库中的 mux 就可以。 -restful 是几年前刮起的 API 设计风潮,在 restful 中使用了 http 标准还没有支持的一些语义。来看看 restful 中常见的请求路径: +restful 是几年前刮起的 API 设计风潮,在 restful 中使用了 http 标准库还没有支持的一些语义。来看看 restful 中常见的请求路径: ``` GET /repos/:owner/:repo/comments/:id/reactions