forked from nat/sludge
add vim buffers stats route
This commit is contained in:
parent
cffcbcaa34
commit
a706461634
@ -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(
|
Route(
|
||||||
lambda request: request.path == '/stats',
|
lambda request: request.path == '/stats',
|
||||||
[Method.GET],
|
[Method.GET],
|
||||||
|
Loading…
Reference in New Issue
Block a user