Sha256: d8704075fbfb6c33de9128659efd97911f6c6ceb00b2930fb6b8f4548ab68a43

Contents?: true

Size: 575 Bytes

Versions: 7

Compression:

Stored size: 575 Bytes

Contents

Detour::Engine.routes.draw do
  get  "/flags/:flaggable_type" => "flags#index", as: "flags"
  post "/flags/:flaggable_type" => "flags#update"

  resources :features, only: [:create, :destroy]
  resources :groups, only: [:index, :show, :create, :update, :destroy]

  scope "/:flag_type/:feature_name" do
    get    ":flaggable_type"     => "flaggable_flags#index",   as: "flaggable_flags"
    put    ":flaggable_type"     => "flaggable_flags#update"
    delete ":flaggable_type/:id" => "flaggable_flags#destroy", as: "flaggable_flag"
  end

  root to: "application#index"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
detour-0.0.15 config/routes.rb
detour-0.0.14 config/routes.rb
detour-0.0.13 config/routes.rb
detour-0.0.12 config/routes.rb
detour-0.0.11 config/routes.rb
detour-0.0.10 config/routes.rb
detour-0.0.9 config/routes.rb