Sha256: edb43b45f3d2cc9f1f99ab3328859984920e89563c0685c777c563582a77d217

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

Rails.application.routes.draw do
  use_doorkeeper

  mount Garage::Docs::Engine => '/docs'
  mount Garage::Meta::Engine => '/meta'

  resources :posts do
    collection do
      get :hide
      get :capped
      get :namespaced
    end
  end

  resources :users do
    resources :posts do
      collection do
        get :private
      end
    end

    resources :public_posts, only: :index
  end

  resource :session
  resource :echo
  resource :ping

  get :mine, to: 'public_posts#my'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
garage-doorkeeper-2.0.0 spec/dummy/config/routes.rb
garage-doorkeeper-1.0.0 spec/dummy/config/routes.rb