init commit

This commit is contained in:
Tommy Parnell
2015-03-19 00:01:29 -04:00
parent 89a4be8f6b
commit 7e2bad34b4
88 changed files with 50091 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using System.Collections.Generic;
using UntappedWidgetGenerator.Model;
namespace UntappedWidgetGenerator.Web
{
using Nancy;
public class IndexModule : NancyModule
{
public IndexModule()
{
Get["/{username}"] = parameters =>
{
return View["Views/Index/Index.cshtml", (string)parameters.username];
};
Post["/{username}"] = parameters =>
{
var info = new UntappedRepository().Get(parameters.username);
return View["Profile", info];
};
}
}
}