mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +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
|
||||
import Ecto.Query
|
||||
|
||||
plug PhilomenaWeb.RecodeParameterPlug, [name: "id"] when action in [:show]
|
||||
|
||||
def show(conn, %{"id" => slug}) do
|
||||
tag =
|
||||
Tag
|
||||
|
|
Loading…
Reference in a new issue