Simplify PageController

This commit is contained in:
Vincent
2019-05-02 13:04:21 +02:00
committed by Thomas Citharel
parent fb0e9c42f8
commit 7f31121880
8 changed files with 109 additions and 164 deletions

View File

@@ -8,6 +8,10 @@ defmodule MobilizonWeb.ErrorView do
"Page not found"
end
def render("404.json", _assigns) do
%{msg: "Resource not found"}
end
def render("invalid_request.json", _assigns) do
%{errors: "Invalid request"}
end