add chaining / mounting routing tables
Abierto
enhancement
- Lenguaje dominante
- Python
- Estrellas
- 16.5k
- Forks
- 2.4k
- Merge medio
- 17 h 22 min
- PR fusionados (30 d)
- 212
Descripción
## 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.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.