Skip to content

Unexpected ordering between prefix and mount point #1083

Open
@wagenet

Description

@wagenet
class API < Grape::API
  prefix 'api'
  format :json
  mount Acme::Ping => 'foo'
  mount Acme::Raise
  mount Acme::Protected
  mount Acme::Post
end

This generates a url like /foo/api. I'd expect the prefix to take precedence over the mount point and give me /api/foo. If this is intentional, please disregard.

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