Refactor Mobilizon.Federation.ActivityPub and add typespecs
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -6,6 +6,7 @@ defmodule Mobilizon.Web.FallbackController do
|
||||
"""
|
||||
use Mobilizon.Web, :controller
|
||||
|
||||
@spec call(Plug.Conn.t(), {:error, :not_found}) :: Plug.Conn.t()
|
||||
def call(conn, {:error, :not_found}) do
|
||||
conn
|
||||
|> put_status(:not_found)
|
||||
|
||||
Reference in New Issue
Block a user