diff --git a/src/lib/router.py b/src/lib/router.py index 706715c..5130299 100644 --- a/src/lib/router.py +++ b/src/lib/router.py @@ -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 %'
'] + """) + ) + ), Route( lambda request: request.path == '/stats', [Method.GET],