Sha256: a72346506b5c38252237f39bd91575687db1184aee48064fb204fa8473e1879b

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 Bytes

Contents

Refile::TestApp.routes.draw do
  root to: "home#index"

  scope path: "normal", as: "normal" do
    resources :posts, only: [:new, :create, :show], controller: "normal_posts"
  end

  scope path: "direct", as: "direct" do
    resources :posts, only: [:new, :create], controller: "direct_posts"
  end

  scope path: "presigned", as: "presigned" do
    resources :posts, only: [:new, :create], controller: "presigned_posts" do
      post :upload, on: :collection
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refile-0.2.4 spec/refile/test_app/config/routes.rb
refile-0.2.3 spec/refile/test_app/config/routes.rb
refile-0.2.2 spec/refile/test_app/config/routes.rb