config/routes.rb in radiantcms-couchrest_model-0.1.3 vs config/routes.rb in radiantcms-couchrest_model-0.1.4

- old
+ new

@@ -10,23 +10,26 @@ admin.resources :users end map.namespace :admin do |admin| admin.resource :preferences - admin.resource :configuration, :controller => 'configuration' - # admin.resources :settings admin.resources :extensions, :only => :index admin.resources :page_parts - admin.resources :page_fields admin.reference '/reference/:type.:format', :controller => 'references', :action => 'show', :conditions => {:method => :get} end # Admin Routes map.with_options(:controller => 'admin/welcome') do |welcome| welcome.admin 'admin', :action => 'index' welcome.welcome 'admin/welcome', :action => 'index' welcome.login 'admin/login', :action => 'login' welcome.logout 'admin/logout', :action => 'logout' + end + + # Export Routes + map.with_options(:controller => 'admin/export') do |export| + export.export 'admin/export', :action => 'yaml' + export.export_yaml 'admin/export/yaml', :action => 'yaml' end # Site URLs map.with_options(:controller => 'site') do |site| site.root :action => 'show_page', :url => '/'