bump_server/lib/bump_web/controllers/sender_controller.ex

11 lines
249 B
Elixir
Raw Normal View History

defmodule BumpWeb.SenderController do
use BumpWeb, :controller
alias Bump.Senders
def firebase(conn, %{"sender" => sender, "token" => token}) do
Senders.firebase(sender, token)
text conn, Jason.encode!(%{"status" => "OK"})
end
end