Sha256: 03a7d30ce87b9962ba4b6bff3eb2f5204751e5d61e17036679fbfeb5948a189a

Contents?: true

Size: 773 Bytes

Versions: 6

Compression:

Stored size: 773 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"
  get '/:path' => 'burp/catch_all#show', :constraints => { :path => /.*/ }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
burp_cms-1.3.22 config/routes.rb
burp_cms-1.3.21 config/routes.rb
burp_cms-1.3.20 config/routes.rb
burp_cms-1.3.19 config/routes.rb
burp_cms-1.3.18 config/routes.rb
burp_cms-1.3.17 config/routes.rb