add parameter recoder to api tag controller

This commit is contained in:
byte[] 2019-12-31 23:22:35 -05:00
parent d406e1ee1c
commit 7000be9865

View file

@ -6,6 +6,8 @@ defmodule PhilomenaWeb.Api.Json.TagController do
alias Philomena.Repo
import Ecto.Query
plug PhilomenaWeb.RecodeParameterPlug, [name: "id"] when action in [:show]
def show(conn, %{"id" => slug}) do
tag =
Tag