enable api

This commit is contained in:
Cynthia Foxwell 2024-07-10 13:44:33 -06:00
parent 29e4b240d6
commit 3448f8cdf6

View file

@ -11,7 +11,7 @@ import types, config, prefs, formatters, redis_cache, http_pool
import views/[general, about]
import routes/[
preferences, timeline, status, media, search, rss, list, debug,
unsupported, embed, resolver, router_utils, home,follow]
unsupported, embed, resolver, router_utils, home, follow, twitter_api]
const instancesUrl = "https://github.com/zedeus/nitter/wiki/Instances"
const issuesUrl = "https://github.com/zedeus/nitter/issues"
@ -51,6 +51,7 @@ createMediaRouter(cfg)
createEmbedRouter(cfg)
createRssRouter(cfg)
#createDebugRouter(cfg)
createTwitterApiRouter(cfg)
settings:
port = Port(cfg.port)
@ -103,4 +104,5 @@ routes:
extend resolver, ""
extend embed, ""
#extend debug, ""
extend twitter_api, ""
extend unsupported, ""