Skip to content

Commit

Permalink
Change response status to Created
Browse files Browse the repository at this point in the history
  • Loading branch information
erickmp07 committed Oct 19, 2021
1 parent 69cdaaa commit 7071ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inmana_web/controllers/restaurants_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule InmanaWeb.RestaurantsController do
def create(connection, params) do
with {:ok, %Restaurant{} = restaurant} <- Create.call(params) do
connection
|> put_status(:ok)
|> put_status(:created)
|> render("create.json", restaurant: restaurant)
end
end
Expand Down

0 comments on commit 7071ed0

Please sign in to comment.