Skip to content

Instantly share code, notes, and snippets.

@forki
Created October 4, 2018 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forki/24f80ba00811d887218f0f22e356d144 to your computer and use it in GitHub Desktop.
Save forki/24f80ba00811d887218f0f22e356d144 to your computer and use it in GitHub Desktop.
let allTagsEndpoint =
pipeline {
plug (fun next ctx -> task {
let txt = TagList.Encoder tags |> Encode.toString 0
ctx.SetContentType ("application/json")
return! setBodyFromString txt next ctx
})
set_header "Content-Type" "application/json"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment