sedi-relay/relay/http_stats.py

12 lines
178 B
Python
Raw Normal View History

2018-11-18 22:03:53 +00:00
import aiohttp.web
from . import app
from .http_debug import STATS
async def stats(request):
return aiohttp.web.json_response(STATS)
app.router.add_get('/stats', stats)