- message now contains a second string which is meant for unencrypted title information, which can be displayed without e2e encryption. - senders can now be deleted - the same sender / token connection is no longer added to the database
		
			
				
	
	
		
			17 lines
		
	
	
		
			385 B
		
	
	
	
		
			Elixir
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			385 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
 | |
| 
 | |
|   def deleteSender(conn, %{"sender" => sender}) do
 | |
|     Senders.delete(sender)
 | |
|     text conn, Jason.encode!(%{"status" => "OK"})
 | |
| 
 | |
|   end
 | |
| end
 |