nitter/src/routes/debug.nim

11 lines
235 B
Nim
Raw Normal View History

2022-01-05 23:42:18 +00:00
# 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()