Skip to content

route :any doesn't catch everything in a namespace #1081

Closed
@wagenet

Description

@wagenet
    namespace :super do
      get :ping do
        pong = params[:pong] || 'pong'
        { ping: "#{pong.upcase}!!!" }
      end

      route :any, '*path' do
        { path: params[:path] }
      end
    end

GET /super/ping works but GET /super errors. However, I am able to do POST /super/ping and have it get picked up by the route :any. I would expect that nothing to /super would error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions