Hash :
8a017ed9
Author :
Thomas de Grivel
Date :
2022-02-02T14:45:50
defmodule KmxgitWeb.ErrorController do
use KmxgitWeb, :controller
def show(conn, params) do
code = params["code"]
case code do
["500"] -> raise "Testing error 500 from controller."
["500", "view"] -> render(conn, :"500")
["500", "assign"] -> render(conn, :assign)
_ -> not_found(conn)
end
end
end