Skip to content

Instantly share code, notes, and snippets.

@horsdal
Created March 18, 2013 11:03
Show Gist options
  • Save horsdal/5186456 to your computer and use it in GitHub Desktop.
Save horsdal/5186456 to your computer and use it in GitHub Desktop.
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