Files
nitter/src/routes/debug.nim
Zed 6fcd849eff Rename accounts/guest accounts to sessions
The new file loaded by default is now ./sessions.jsonl
JSONL is also required, .json support dropped.
2025-02-05 04:15:53 +01:00

14 lines
302 B
Nim

# SPDX-License-Identifier: AGPL-3.0-only
import jester
import router_utils
import ".."/[auth, types]
proc createDebugRouter*(cfg: Config) =
router debug:
get "/.health":
respJson getSessionPoolHealth()
get "/.sessions":
cond cfg.enableDebug
respJson getSessionPoolDebug()