12 lines
178 B
Python
12 lines
178 B
Python
|
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)
|