diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-25 10:42:18 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-25 10:42:18 -0500 |
commit | f20e804622e8892a090a6678aa38f32898e0d433 (patch) | |
tree | 0527dd7a06d3def685fc2f913efdb6e65360103d /src/SMAPI.Web/Controllers/LogParserController.cs | |
parent | bbd021f8736d1496f34a58b12bb0ee6c341d1c5e (diff) | |
parent | c90b821a43bd98c3268a25a324f10a1f2055d7ac (diff) | |
download | SMAPI-f20e804622e8892a090a6678aa38f32898e0d433.tar.gz SMAPI-f20e804622e8892a090a6678aa38f32898e0d433.tar.bz2 SMAPI-f20e804622e8892a090a6678aa38f32898e0d433.zip |
Merge branch 'feature/download-page' into develop
Diffstat (limited to 'src/SMAPI.Web/Controllers/LogParserController.cs')
-rw-r--r-- | src/SMAPI.Web/Controllers/LogParserController.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/SMAPI.Web/Controllers/LogParserController.cs b/src/SMAPI.Web/Controllers/LogParserController.cs index b9227a2f..04a11a82 100644 --- a/src/SMAPI.Web/Controllers/LogParserController.cs +++ b/src/SMAPI.Web/Controllers/LogParserController.cs @@ -19,7 +19,7 @@ namespace StardewModdingAPI.Web.Controllers ** Properties *********/ /// <summary>The log parser config settings.</summary> - private readonly LogParserConfig Config; + private readonly ContextConfig Config; /// <summary>The underlying Pastebin client.</summary> private readonly IPastebinClient Pastebin; @@ -36,11 +36,11 @@ namespace StardewModdingAPI.Web.Controllers ** Constructor ***/ /// <summary>Construct an instance.</summary> - /// <param name="configProvider">The log parser config settings.</param> + /// <param name="contextProvider">The context config settings.</param> /// <param name="pastebin">The Pastebin API client.</param> - public LogParserController(IOptions<LogParserConfig> configProvider, IPastebinClient pastebin) + public LogParserController(IOptions<ContextConfig> contextProvider, IPastebinClient pastebin) { - this.Config = configProvider.Value; + this.Config = contextProvider.Value; this.Pastebin = pastebin; } @@ -50,12 +50,11 @@ namespace StardewModdingAPI.Web.Controllers /// <summary>Render the log parser UI.</summary> /// <param name="id">The paste ID.</param> [HttpGet] - [Route("")] [Route("log")] [Route("log/{id}")] public ViewResult Index(string id = null) { - return this.View("Index", new LogParserModel(this.Config.SectionUrl, id)); + return this.View("Index", new LogParserModel(this.Config.LogParserUrl, id)); } /*** |