add vim buffers stats route

This commit is contained in:
gnat 2024-09-14 05:30:39 -07:00
parent cffcbcaa34
commit a706461634

View File

@ -150,6 +150,17 @@ routes = [
""")
)
),
Route(
lambda request: request.path == '/stats/what-vim-buffers-does-it-have-open',
[Method.GET],
lambda *_: Response(
ResponseCode.OK,
{'Content-type': 'text/html'},
page("vim bufs", """
$[cat ./files/stats/vim-bufs | xargs -I% echo %'<br>']
""")
)
),
Route(
lambda request: request.path == '/stats',
[Method.GET],