nitter/src/routes/auth.nim
2023-11-17 22:48:52 +01:00

13 lines
298 B
Nim

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