aio-libs / aio-libs/aiohttp

add chaining / mounting routing tables

オープン
#2,923 コメント 18 件 リアクション 0 件 担当者 0 名 GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。