Advertisement
Guest User

Untitled

a guest
Oct 12th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. let private registrationHandler =
  2. fun(context: HttpContext) ->
  3. async {
  4. let! data = context.BindJson<RegistrationRequest>()
  5. let response = register data |> function
  6. | Success profile -> profile
  7. | Failure -> ???
  8. return! json response context
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement