eggjs / eggjs/egg

重写Router

Open
#4,667 4 comments 0 reactions 0 assignees View on GitHub
Inactive
Dominant language
TypeScript
Stars
19k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

## 目前要求Router注册的时候添加一个属性,
```
// 例:
router.get('/test','option',controll.user.list)
```
每次访问接口的时候需要根据这个属性做判断,
各位大佬有什么高招吗?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.