From 50ce8cb96b2b218751c2fc2a6b19372f51846acc Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Mon, 14 Jul 2025 19:34:59 +0300 Subject: feat: rewrite in rust --- lib/silmataivas_web/controllers/error_json.ex | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 lib/silmataivas_web/controllers/error_json.ex (limited to 'lib/silmataivas_web/controllers/error_json.ex') diff --git a/lib/silmataivas_web/controllers/error_json.ex b/lib/silmataivas_web/controllers/error_json.ex deleted file mode 100644 index a2ca902..0000000 --- a/lib/silmataivas_web/controllers/error_json.ex +++ /dev/null @@ -1,21 +0,0 @@ -defmodule SilmataivasWeb.ErrorJSON do - @moduledoc """ - This module is invoked by your endpoint in case of errors on JSON requests. - - See config/config.exs. - """ - - # If you want to customize a particular status code, - # you may add your own clauses, such as: - # - # def render("500.json", _assigns) do - # %{errors: %{detail: "Internal Server Error"}} - # end - - # By default, Phoenix returns the status message from - # the template name. For example, "404.json" becomes - # "Not Found". - def render(template, _assigns) do - %{errors: %{detail: Phoenix.Controller.status_message_from_template(template)}} - end -end -- cgit v1.2.3