Sha256: a2ccd2a2a923e432ae6f75124e913e0c468e76df3b00d239db29868fb4338846
Contents?: true
Size: 953 Bytes
Versions: 4
Compression:
Stored size: 953 Bytes
Contents
Quadro::Engine.routes.draw do default_url_options host: Quadro.config.host devise_for :users, class_name: 'Quadro::User', module: :devise, path: 'auth' resource :user, only: [:edit, :update] match 'atom.xml', to: 'feeds#atom', as: 'atom', format: 'xml' match 'rss.xml', to: 'feeds#rss', as: 'rss', format: 'xml' match 'sitemap.xml', to: 'sitemaps#sitemap', as: 'sitemap', format: 'xml' match 'robots.txt', to: 'robots#index', as: 'robots', format: 'txt' get 'tools/sitemap_notifier', to: 'tools#sitemap_notifier', as: 'sitemap_notifier' resources :pages, path: '/' do member do post :form get :publish get :unpublish end get 'page/:page', action: :index, on: :collection resources :widgets, only: [:edit, :update] do resources :assets, only: [:create, :edit, :update, :destroy] end resources :assets, only: [:create, :edit, :update, :destroy] end root :to => 'pages#index' end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
quadro-0.5.8 | config/routes.rb |
quadro-0.5.7 | config/routes.rb |
quadro-0.5.6 | config/routes.rb |
quadro-0.5.5 | config/routes.rb |