mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
add parameter recoder to api tag controller
This commit is contained in:
parent
d406e1ee1c
commit
7000be9865
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@ defmodule PhilomenaWeb.Api.Json.TagController do
|
||||||
alias Philomena.Repo
|
alias Philomena.Repo
|
||||||
import Ecto.Query
|
import Ecto.Query
|
||||||
|
|
||||||
|
plug PhilomenaWeb.RecodeParameterPlug, [name: "id"] when action in [:show]
|
||||||
|
|
||||||
def show(conn, %{"id" => slug}) do
|
def show(conn, %{"id" => slug}) do
|
||||||
tag =
|
tag =
|
||||||
Tag
|
Tag
|
||||||
|
|
Loading…
Reference in a new issue