fix: error handling override kemal default response

This commit is contained in:
Juan Rodriguez
2024-07-14 11:19:59 +02:00
parent faedd0bc7a
commit 2f14cd82dd
2 changed files with 18 additions and 4 deletions
-4
View File
@@ -11,8 +11,4 @@ require "./app/routes"
add_context_storage_type(App::Models::User)
add_handler(App::Middlewares::Auth.new)
error 500 { |env| {"error" => "Internal Server Error" }.to_json}
error 401 { |env| {"error" => "Unauthorized" }.to_json}
error 404 { |env| {"error" => "Not Found" }.to_json}
Kemal.run