Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let private registrationHandler =
- fun(context: HttpContext) ->
- async {
- let! data = context.BindJson<RegistrationRequest>()
- let response = register data |> function
- | Success profile -> profile
- | Failure -> ???
- return! json response context
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement