nitter/src/routes/auth.nim

13 lines
298 B
Nim
Raw Normal View History

# SPDX-License-Identifier: AGPL-3.0-only
import jester
import router_utils
import ".."/[types, auth]
proc createAuthRouter*(cfg: Config) =
router auth:
2023-11-17 21:48:51 +00:00
get "/.well-known/nitter-auth":
2023-11-17 19:07:14 +00:00
cond cfg.guestAccountsUsePool
resp Http200, {"content-type": "text/plain"}, getAuthHash(cfg)