mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-02 23:06:36 +08:00
[重构] 资源路径使用单数
This commit is contained in:
@@ -135,18 +135,18 @@ tests/
|
||||
|
||||
### 4.1 路由命名
|
||||
|
||||
要求:
|
||||
|
||||
* 使用英文小写复数资源名
|
||||
* 使用语义清晰的层级结构
|
||||
|
||||
示例:
|
||||
|
||||
* `/nodes`
|
||||
* `/proxy-routes`
|
||||
* `/config-versions`
|
||||
* `/tls-certificates`
|
||||
* `/managed-domains`
|
||||
要求:
|
||||
|
||||
* 使用英文小写单数资源名
|
||||
* 使用语义清晰的层级结构
|
||||
|
||||
示例:
|
||||
|
||||
* `/node`
|
||||
* `/proxy-route`
|
||||
* `/config-version`
|
||||
* `/tls-certificate`
|
||||
* `/managed-domain`
|
||||
|
||||
### 4.2 页面职责
|
||||
|
||||
|
||||
Reference in New Issue
Block a user