Sha256: f1d4bb3d2f613cd98dd5f056a46b974d82a9df65963dafeca85285044dd5fa88

Contents?: true

Size: 827 Bytes

Versions: 21

Compression:

Stored size: 827 Bytes

Contents

Burp::Engine.routes.draw do
  get "/" => "pages#index"
  get "/help" => "static#help"
  get "/about" => "static#about"
  
  resources :files
  get "/files/" => "files#index"
  post "/files/" => "files#create"
  get "/files/*id" => "files#show"
  delete "/files/*id" => "files#destroy"
  
  resources :pages
  get "/pages/*id/edit" => "pages#edit", :id => /.+/
  get "/pages/*id" => "pages#show", :id => /.+/
  put "/pages/*id" => "pages#update", :id => /.+/
  delete "/pages/*id" => "pages#destroy", :id => /.+/
  
  resources :menus do
    resources :groups
    resources :links
  end
  
  # Catch all to 404 error
  get "/*path" => "error#no_such_page"

end

Rails.application.routes.draw do
  mount Burp::Engine => "/burp", :as => "burp_engine"
  get '/:path' => 'burp/catch_all#show', :constraints => { :path => /.*/ }
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
burp_cms-1.7.1 config/routes.rb
burp_cms-1.7.0 config/routes.rb
burp_cms-1.6.0 config/routes.rb
burp_cms-1.5.13 config/routes.rb
burp_cms-1.5.12 config/routes.rb
burp_cms-1.5.11 config/routes.rb
burp_cms-1.5.10 config/routes.rb
burp_cms-1.5.9 config/routes.rb
burp_cms-1.5.8 config/routes.rb
burp_cms-1.5.7 config/routes.rb
burp_cms-1.5.6 config/routes.rb
burp_cms-1.5.5 config/routes.rb
burp_cms-1.5.4 config/routes.rb
burp_cms-1.5.3 config/routes.rb
burp_cms-1.5.2 config/routes.rb
burp_cms-1.5.1 config/routes.rb
burp_cms-1.5.0 config/routes.rb
burp_cms-1.4.1 config/routes.rb
burp_cms-1.4.0 config/routes.rb
burp_cms-1.3.33 config/routes.rb