Skip to content

Instantly share code, notes, and snippets.

@chasers
Last active May 16, 2019 21: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 chasers/452b86318f1f5203fe623b35a580b8bf to your computer and use it in GitHub Desktop.
Save chasers/452b86318f1f5203fe623b35a580b8bf to your computer and use it in GitHub Desktop.
def event(conn, params) do
user_token = params["authentications"]["account"]["token"]["token"]
response =
build_response(conn, user_token)
|> Jason.encode!()
conn
|> put_resp_content_type("application/json")
|> send_resp(200, response)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment