mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 15:19:32 +00:00
Add more info to /.tokens endpoint
This commit is contained in:
parent
4d9fd1a6f8
commit
d4c6876bc9
3 changed files with 40 additions and 6 deletions
10
src/routes/debug.nim
Normal file
10
src/routes/debug.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
import jester
|
||||
import router_utils
|
||||
import ".."/[tokens, types]
|
||||
|
||||
proc createDebugRouter*(cfg: Config) =
|
||||
router debug:
|
||||
get "/.tokens":
|
||||
cond cfg.enableDebug
|
||||
respJson getPoolJson()
|
||||
Loading…
Reference in a new issue