Created
March 18, 2013 11:03
-
-
Save horsdal/5186456 to your computer and use it in GitHub Desktop.
This file contains 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
module HelloFsNancy = | |
open System | |
open Nancy | |
open Nancy.Hosting.Self | |
type HelloModule() as self = | |
inherit NancyModule() | |
do | |
self.Get.["/"] <- | |
fun _ -> "Hello" :> obj | |
[<EntryPoint>] | |
let main args = | |
let nancyHost = new NancyHost(new Uri("http://localhost:8888/nancy/"), new Uri("http://127.0.0.1:8888/nancy/")) | |
nancyHost.Start() | |
printfn "ready..." | |
Console.ReadKey() | |
nancyHost.Stop() | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment