Sha256: 542175aea6b49f313c684d06ee7e43e7cb14a199b2e960a75b527f7028e60cbb

Contents?: true

Size: 795 Bytes

Versions: 9

Compression:

Stored size: 795 Bytes

Contents

Burp::Engine.routes.draw do
  get "/" => "static#index"
  get "/help" => "static#help"
  
  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

9 entries across 9 versions & 1 rubygems

Version Path
burp_cms-1.3.31 config/routes.rb
burp_cms-1.3.30 config/routes.rb
burp_cms-1.3.29 config/routes.rb
burp_cms-1.3.28 config/routes.rb
burp_cms-1.3.27 config/routes.rb
burp_cms-1.3.26 config/routes.rb
burp_cms-1.3.25 config/routes.rb
burp_cms-1.3.24 config/routes.rb
burp_cms-1.3.23 config/routes.rb