raphael
60888fd63c
- senders, which now have a firebase token are added as their own table in the database - firebase token api call added, which allows a user to connect a sender id to a firebase token - firebase library not yet connected to the saved firebase tokens
11 lines
249 B
Elixir
11 lines
249 B
Elixir
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
|