diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-10-28 12:38:30 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-10-28 12:38:30 -0400 |
commit | fe5b2f62da27ac0e2ddf60240f2b19cf2a404f69 (patch) | |
tree | 7793b1cf575ff098ee008ec2af34a7acdad01ae9 /src/SMAPI.Web/Controllers | |
parent | d545281ef3d83d4db43d5ca56eb59800c8a1b8d2 (diff) | |
download | SMAPI-fe5b2f62da27ac0e2ddf60240f2b19cf2a404f69.tar.gz SMAPI-fe5b2f62da27ac0e2ddf60240f2b19cf2a404f69.tar.bz2 SMAPI-fe5b2f62da27ac0e2ddf60240f2b19cf2a404f69.zip |
prettify log URL, read paste ID serverside (#358)
Diffstat (limited to 'src/SMAPI.Web/Controllers')
-rw-r--r-- | src/SMAPI.Web/Controllers/LogParserController.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SMAPI.Web/Controllers/LogParserController.cs b/src/SMAPI.Web/Controllers/LogParserController.cs index ee1d51cd..f9943707 100644 --- a/src/SMAPI.Web/Controllers/LogParserController.cs +++ b/src/SMAPI.Web/Controllers/LogParserController.cs @@ -42,11 +42,13 @@ namespace StardewModdingAPI.Web.Controllers ** Web UI ***/ /// <summary>Render the log parser UI.</summary> + /// <param name="id">The paste ID.</param> [HttpGet] [Route("log")] - public ViewResult Index() + [Route("log/{id}")] + public ViewResult Index(string id = null) { - return this.View("Index", new LogParserModel(this.Config.SectionUrl)); + return this.View("Index", new LogParserModel(this.Config.SectionUrl, id)); } /*** |