mirror of
https://github.com/zedeus/nitter.git
synced 2024-05-19 17:48:10 +00:00
13 lines
298 B
Nim
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)
|