Rename the controller and the view names to "Link".
This commit is contained in:
+4
-4
@@ -1,13 +1,13 @@
|
||||
defmodule LinkShortenerWeb.Api.V1.LinksView do
|
||||
defmodule LinkShortenerWeb.Api.V1.LinkView do
|
||||
use LinkShortenerWeb, :view
|
||||
alias LinkShortenerWeb.Api.V1.LinksView
|
||||
alias LinkShortenerWeb.Api.V1.LinkView
|
||||
|
||||
def render("index.json", %{links: links}) do
|
||||
%{data: render_many(links, LinksView, "link.json")}
|
||||
%{data: render_many(links, LinkView, "link.json")}
|
||||
end
|
||||
|
||||
def render("show.json", %{links: link}) do
|
||||
%{data: render_one(link, LinksView, "link.json")}
|
||||
%{data: render_one(link, LinkView, "link.json")}
|
||||
end
|
||||
|
||||
def render("link.json", %{links: link}) do
|
||||
Reference in New Issue
Block a user