From 82b3d0a900c9946b8abadb268e8715a761c6ba5d Mon Sep 17 00:00:00 2001 From: Erick Macedo Pinto Date: Wed, 20 Oct 2021 00:07:50 -0300 Subject: [PATCH] Create supply view --- lib/inmana_web/views/supplies_view.ex | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/inmana_web/views/supplies_view.ex diff --git a/lib/inmana_web/views/supplies_view.ex b/lib/inmana_web/views/supplies_view.ex new file mode 100644 index 0000000..be8f500 --- /dev/null +++ b/lib/inmana_web/views/supplies_view.ex @@ -0,0 +1,10 @@ +defmodule InmanaWeb.SuppliesView do + use InmanaWeb, :view + + def render("create.json", %{supply: supply}) do + %{ + message: "Supply created!", + supply: supply + } + end +end