summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Web/Controllers
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 22:42:04 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 22:42:04 -0400
commit0d6f6a9acef175fd9ea0df6790111d8d58d7f368 (patch)
tree28cb29eb86b8189a5f87ba2a2f05ce988ccded9f /src/StardewModdingAPI.Web/Controllers
parent71d85a0c22a9295a08acdf433ef67d8b1b47e57b (diff)
downloadSMAPI-0d6f6a9acef175fd9ea0df6790111d8d58d7f368.tar.gz
SMAPI-0d6f6a9acef175fd9ea0df6790111d8d58d7f368.tar.bz2
SMAPI-0d6f6a9acef175fd9ea0df6790111d8d58d7f368.zip
add GitHub update check support (#336)
Diffstat (limited to 'src/StardewModdingAPI.Web/Controllers')
-rw-r--r--src/StardewModdingAPI.Web/Controllers/ModsController.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.Web/Controllers/ModsController.cs b/src/StardewModdingAPI.Web/Controllers/ModsController.cs
index a3f5001a..4b1abde4 100644
--- a/src/StardewModdingAPI.Web/Controllers/ModsController.cs
+++ b/src/StardewModdingAPI.Web/Controllers/ModsController.cs
@@ -44,6 +44,7 @@ namespace StardewModdingAPI.Web.Controllers
this.Repositories =
new IModRepository[]
{
+ new GitHubRepository(config.GitHubKey, config.GitHubBaseUrl, config.GitHubReleaseUrlFormat, config.GitHubUserAgent, config.GitHubAcceptHeader),
new NexusRepository(config.NexusKey, config.NexusUserAgent, config.NexusBaseUrl, config.NexusModUrlFormat)
}
.ToDictionary(p => p.VendorKey, StringComparer.CurrentCultureIgnoreCase);