Skip to content

Commit

Permalink
Add the restaurant view
Browse files Browse the repository at this point in the history
  • Loading branch information
erickmp07 committed Sep 28, 2021
1 parent e8a3dfa commit c683f60
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/inmana_web/views/restaurants_view.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
defmodule InmanaWeb.RestaurantsView do
use InmanaWeb, :view

def render("create.json", %{restaurant: restaurant}) do
%{
message: "Restaurant created!",
restaurant: restaurant
}
end
end

0 comments on commit c683f60

Please sign in to comment.