summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Startup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/Startup.cs')
-rw-r--r--src/SMAPI.Web/Startup.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/SMAPI.Web/Startup.cs b/src/SMAPI.Web/Startup.cs
index 93135239..d7d4d074 100644
--- a/src/SMAPI.Web/Startup.cs
+++ b/src/SMAPI.Web/Startup.cs
@@ -81,8 +81,13 @@ namespace StardewModdingAPI.Web
password: api.GitHubPassword
));
- services.AddSingleton<INexusClient>(new NexusClient(
- userAgent: api.NexusUserAgent,
+ //services.AddSingleton<INexusClient>(new NexusClient(
+ // userAgent: api.NexusUserAgent,
+ // baseUrl: api.NexusBaseUrl,
+ // modUrlFormat: api.NexusModUrlFormat
+ //));
+ services.AddSingleton<INexusClient>(new NexusWebScrapeClient(
+ userAgent: userAgent,
baseUrl: api.NexusBaseUrl,
modUrlFormat: api.NexusModUrlFormat
));