trailing_format_plug icon indicating copy to clipboard operation
trailing_format_plug copied to clipboard

Not working for collection actions

Open zaidakram opened this issue 10 years ago • 1 comments

My routes are like this

scope "/", PostPhoenix do
  pipe_through :api

  scope "v1" do
    resources "posts", PostController, only: [:index, :show]
    post "posts/search", PostController, :search
  end
end

member routes are working fine like

/v1/posts/3.json

But it doesn't work on collection actions. Like this

/v1/posts.json

zaidakram avatar Oct 14 '15 17:10 zaidakram

Sorry about that. Let me look into that, it works fine for us. Maybe a new version of plug works differently or it is specific to your setup. Can you share an example project somewhere?

mschae avatar Oct 15 '15 16:10 mschae