Current section
Files
Jump to
Current section
Files
priv/template/lib/app_name/api/actions/not_found.ex.eex
defmodule <%= @module %>.API.Actions.NotFound do
use Raxx.SimpleServer
alias <%= @module %>.API
@impl Raxx.SimpleServer
def handle_request(_request, _state) do
error = %{title: "Action not found"}
response(:not_found)
|> API.set_json_payload(%{errors: [error]})
end
end