From f5ae330e4c85fbfcb944c1d4ef0d849204a49f47 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Thu, 19 Mar 2015 14:35:12 -0400 Subject: [PATCH] add browse Allow for standard browse --- src/UntappedWidgetGenerator.Web/IndexModule.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UntappedWidgetGenerator.Web/IndexModule.cs b/src/UntappedWidgetGenerator.Web/IndexModule.cs index 7e5e4be..eec6463 100644 --- a/src/UntappedWidgetGenerator.Web/IndexModule.cs +++ b/src/UntappedWidgetGenerator.Web/IndexModule.cs @@ -10,6 +10,7 @@ namespace UntappedWidgetGenerator.Web public IndexModule() { Get["/"] = x => { return View["Views/Index/Index.cshtml", "tparnell"]; }; + Get["/{username}/browse"] = x => { return View["Views/Index/Index.cshtml", (string)x.username]; }; Get["/{username}"] = parameters => { var info = new UntappedRepository().Get(parameters.username); @@ -17,4 +18,4 @@ namespace UntappedWidgetGenerator.Web }; } } -} \ No newline at end of file +}