Add the authentication for API sing in.
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build was killed

This commit is contained in:
2023-08-09 21:38:20 +03:00
parent dad35c5c51
commit c793b46e53
3 changed files with 23 additions and 0 deletions
@@ -21,4 +21,10 @@ defmodule LinkShortenerWeb.FallbackController do
|> put_view(LinkShortenerWeb.ErrorView)
|> render(:"404")
end
def call(conn, {:error, :unauthorized}) do
conn
|> put_status(:unauthorized)
|> render(LinkShortenerWeb.ErrorView, :"401")
end
end