Last active
December 14, 2015 17:59
-
-
Save thecodejunkie/5126044 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IndexModule : NancyModule | |
{ | |
public IndexModule() | |
{ | |
Get["/"] = x => { | |
return "Nancy running on ScriptCS!"; | |
}; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="Nancy" version="0.16.1" targetFramework="net40" /> | |
<package id="Nancy.Hosting.Self" version="0.16.1" targetFramework="net40" /> | |
</packages> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#load "module.csx" | |
using System; | |
using Nancy; | |
using Nancy.Hosting.Self; | |
var nancyHost = new NancyHost(new Uri("http://localhost:8888/nancy/")); | |
nancyHost.Start(); | |
Console.ReadKey(); | |
nancyHost.Stop(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment