summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Controllers
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-12-25 01:53:10 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-12-25 01:53:10 -0500
commit70cbfa541dade1822394f81bd1d5b6baa18e51e9 (patch)
tree7b20e8fc6a7e79687a3367ea9aa28a5181eb5444 /src/SMAPI.Web/Controllers
parentadee66b3b4ea111b0082a31108e55726fab10643 (diff)
downloadSMAPI-70cbfa541dade1822394f81bd1d5b6baa18e51e9.tar.gz
SMAPI-70cbfa541dade1822394f81bd1d5b6baa18e51e9.tar.bz2
SMAPI-70cbfa541dade1822394f81bd1d5b6baa18e51e9.zip
support contextual nav URLs, update nav menu (#411)
Diffstat (limited to 'src/SMAPI.Web/Controllers')
-rw-r--r--src/SMAPI.Web/Controllers/LogParserController.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/SMAPI.Web/Controllers/LogParserController.cs b/src/SMAPI.Web/Controllers/LogParserController.cs
index ad979397..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;
}
@@ -54,7 +54,7 @@ namespace StardewModdingAPI.Web.Controllers
[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));
}
/***