Skip to content

Instantly share code, notes, and snippets.

@aramkoukia
Created July 22, 2018 04:03
Show Gist options
  • Save aramkoukia/1c9356c6e1c9711d113042054490fd99 to your computer and use it in GitHub Desktop.
Save aramkoukia/1c9356c6e1c9711d113042054490fd99 to your computer and use it in GitHub Desktop.
HttpHandler.fs
namespace firstGiraffe
module HttpHandlers =
open Microsoft.AspNetCore.Http
open Giraffe
open firstGiraffe.Models
let handleGetHello =
fun (next : HttpFunc) (ctx : HttpContext) ->
task {
let response = {
Text = "Hello world, from Giraffe!"
}
return! json response next ctx
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment