Sha256: 583249f2cca09a9320b66edeecfe1929c1ef46e4eadfa7a04e445c3393bd8960

Contents?: true

Size: 1.48 KB

Versions: 15

Compression:

Stored size: 1.48 KB

Contents

module ActionDispatch::Routing
  class Mapper
    def maestrano_routes
      namespace :maestrano do
        scope module: :rails do
          # GET /maestrano/metadata
          get '/metadata', to: 'metadata#index'

          # GET /maestrano/metadata/mytenant
          get '/metadata/:tenant', to: 'metadata#index'
        end

        namespace :auth do
          resources :saml, only:[] do
            # GET /maestrano/auth/saml/init
            get 'init', on: :collection, to: 'saml#init', as: :default

            # GET /maestrano/auth/saml/init/mytenant
            get 'init/:tenant', on: :collection, to: 'saml#init', as: :tenant

            # POST /maestrano/auth/saml/consume
            post 'consume', on: :collection, to: 'saml#consume'

            # POST /maestrano/auth/saml/consume/mytenant
            post 'consume/:tenant', on: :collection, to: 'saml#consume'
          end
        end

        namespace :account do
          # DELETE /maestrano/account/groups/cld-1234
          delete 'groups/:id', to: 'groups#destroy'

          # DELETE /maestrano/account/groups/cld-1234/mytenant
          delete 'groups/:id/:tenant', to: 'groups#destroy'

          # DELETE /maestrano/account/groups/cld-1234/users/usr-1234
          delete 'groups/:group_id/users/:id', to: 'group_users#destroy'

          # DELETE /maestrano/account/groups/cld-1234/users/usr-1234/mytenant
          delete 'groups/:group_id/users/:id/:tenant', to: 'group_users#destroy'
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
maestrano-rails-1.0.0 lib/maestrano/rails/routing/routes.rb
maestrano-rails-1.0.0.pre.RC8 lib/maestrano/rails/routing/routes.rb
maestrano-rails-1.0.0.pre.RC7 lib/maestrano/rails/routing/routes.rb
maestrano-rails-1.0.0.pre.RC6 lib/maestrano/rails/routing/routes.rb
maestrano-rails-1.0.0.pre.RC5 lib/maestrano/rails/routing/routes.rb
maestrano-rails-1.0.0.pre.RC4 lib/maestrano/rails/routing/routes.rb
maestrano-rails-1.0.0.pre.RC3 lib/maestrano/rails/routing/routes.rb
maestrano-rails-1.0.0.pre.RC2 lib/maestrano/rails/routing/routes.rb
maestrano-rails-1.0.0.pre.RC1 lib/maestrano/rails/routing/routes.rb
maestrano-rails-0.15.4 lib/maestrano/rails/routing/routes.rb
maestrano-rails-0.15.2 lib/maestrano/rails/routing/routes.rb
maestrano-rails-0.15.1 lib/maestrano/rails/routing/routes.rb
maestrano-rails-0.15.0 lib/maestrano/rails/routing/routes.rb
maestrano-rails-0.14.0 lib/maestrano/rails/routing/routes.rb
maestrano-rails-0.13.0 lib/maestrano/rails/routing/routes.rb