add browse
Allow for standard browse
This commit is contained in:
@@ -10,6 +10,7 @@ namespace UntappedWidgetGenerator.Web
|
|||||||
public IndexModule()
|
public IndexModule()
|
||||||
{
|
{
|
||||||
Get["/"] = x => { return View["Views/Index/Index.cshtml", "tparnell"]; };
|
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 =>
|
Get["/{username}"] = parameters =>
|
||||||
{
|
{
|
||||||
var info = new UntappedRepository().Get(parameters.username);
|
var info = new UntappedRepository().Get(parameters.username);
|
||||||
@@ -17,4 +18,4 @@ namespace UntappedWidgetGenerator.Web
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user