-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use Phoenix with Bandit HTTP server
- Loading branch information
Showing
7 changed files
with
74 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
erlang 26.2.4 | ||
elixir 1.16.2-otp-26 | ||
erlang 26.2.5 | ||
elixir 1.17.3-otp-26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
defmodule AeMdwWeb.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 | ||
Check warning on line 18 in lib/ae_mdw_web/controllers/error_json.ex
|
||
%{errors: %{detail: Phoenix.Controller.status_message_from_template(template)}} | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.