Add /.tokens debug endpoint to see token pool

This commit is contained in:
Zed
2022-01-05 22:49:16 +01:00
parent dd71e60f35
commit f9c9b0d3a4
3 changed files with 22 additions and 1 deletions

View File

@@ -42,3 +42,6 @@ template getCursor*(req: Request): string =
proc getNames*(name: string): seq[string] =
name.strip(chars={'/'}).split(",").filterIt(it.len > 0)
template respJson*(body: string) =
resp body, "application/json"