mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Replace /.tokens with /.health and /.accounts
This commit is contained in:
parent
089275826c
commit
4120558649
7 changed files with 82 additions and 45 deletions
|
|
@ -1,10 +1,13 @@
|
|||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
import jester
|
||||
import router_utils
|
||||
import ".."/[tokens, types]
|
||||
import ".."/[auth, types]
|
||||
|
||||
proc createDebugRouter*(cfg: Config) =
|
||||
router debug:
|
||||
get "/.tokens":
|
||||
get "/.health":
|
||||
respJson getAccountPoolHealth()
|
||||
|
||||
get "/.accounts":
|
||||
cond cfg.enableDebug
|
||||
respJson getPoolJson()
|
||||
respJson getAccountPoolDebug()
|
||||
|
|
|
|||
Loading…
Reference in a new issue