* 设计时,分离变化的部分与不变的部分:变化的部分(路径,执行的操作),不变的部分(路由过程)
* 路由过程分为【注册】和【查找执行】
* app.get/post() 进行路由注册
* app() 执行路由的查找和执行
* 默认与可配置的404页面
-
Notifications
You must be signed in to change notification settings - Fork 0
Http Router Demo, as Express router or Koa-Router
License
xiong-ang/Http_Router
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Http Router Demo, as Express router or Koa-Router
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published