Skip to content

Not working for collection actions #5

Description

@zaidakram

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions