add chaining / mounting routing tables
オープン
enhancement
- 主要言語
- Python
- スター
- 16.5k
- フォーク
- 2.4k
- 平均マージ
- 17時間 22分
- マージ済み PR(30日)
- 212
説明
## Long story short
```python
module = web.RouteTableDef()
@module.get('/status')
async def status(handler):
return web.Response(text="I am fine.")
root = web.RouteTableDef()
root.mount("/api/v1", api_module)
```
Now we got `/api/v1/status` as a route.
## Implementation
If there is interest in having this feature I am willing to look into implementing it and submitting a pull request. I just would like to first clarify API definitions.
コントリビューションガイド
評価
この issue はまだ評価されていません。