From 3448f8cdf6a9819b3e0c64f5882c060e58aa92a6 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 10 Jul 2024 13:44:33 -0600 Subject: [PATCH] enable api --- src/nitter.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nitter.nim b/src/nitter.nim index 0221f56..cf75a24 100644 --- a/src/nitter.nim +++ b/src/nitter.nim @@ -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, ""