https://github.com/nikic/FastRoute
composer require nikic/fast-route
addRoute($httpMethod, $route, $handler)
方法: GET
, POST
, PUT
, PATCH
, DELETE
and HEAD
支持数组:['GET', 'POST']
路由模式
- 绝对完整:/users
- 包含路径分隔符:/user/{name:.+}
- 参数:/user/{id:\d+}
- 可选:/articles/{id:\d+}[/{title}]