2012-03-05 08:19:08 +00:00
|
|
|
Orbit::Application.routes.draw do
|
2013-07-22 09:26:32 +00:00
|
|
|
mount Ckeditor::Engine => '/ckeditor'
|
|
|
|
|
2013-01-23 10:51:18 +00:00
|
|
|
# get "robots.txt" => 'robots#index'
|
|
|
|
|
2014-01-02 09:53:05 +00:00
|
|
|
devise_for :users, :controllers => { :registrations => "registrations", :passwords => 'passwords', :confirmations => 'confirmations' } do
|
|
|
|
resources :passwords, :except => [:index, :show, :destroy]
|
2012-11-30 07:17:29 +00:00
|
|
|
match "/users_passwd" => "desktop/registrations#update", :as => :users_passwd, :via => :put
|
|
|
|
end
|
|
|
|
|
2012-05-07 02:23:16 +00:00
|
|
|
mount Resque::Server, :at => "/admin/resque"
|
2013-04-19 05:23:57 +00:00
|
|
|
mount Rack::GridFS::Endpoint.new(:db => Mongoid.database,:lookup=>:path), :at => "gridfs"
|
2012-11-17 19:07:50 +00:00
|
|
|
|
2011-08-18 05:43:33 +00:00
|
|
|
# routes for sinatra app
|
|
|
|
match '/site/set_registered', :to => CentralServerExchangeApp
|
|
|
|
match '/site/public_key', :to => CentralServerExchangeApp
|
2011-08-23 07:01:22 +00:00
|
|
|
match '/site/update', :to => GithubApp
|
2011-11-14 02:22:31 +00:00
|
|
|
match '/purchase/:type', :to => CentralServerExchangeApp
|
2011-10-20 02:06:06 +00:00
|
|
|
|
2012-02-13 05:02:52 +00:00
|
|
|
match 'load_orbit_bar' => 'pages#load_orbit_bar'
|
2013-11-25 12:24:56 +00:00
|
|
|
get 'basic_infos' => "basic_infos#index"
|
|
|
|
get 'basic_infos/form' => "basic_infos#form_page"
|
2013-11-26 11:14:24 +00:00
|
|
|
get 'basic_infos/role_page' => "basic_infos#role_page"
|
2013-11-29 08:20:23 +00:00
|
|
|
get 'basic_infos/check_availability' => "basic_infos#check_availability"
|
2013-11-29 10:49:47 +00:00
|
|
|
get 'basic_infos/confirmation' => "basic_infos#confirmation"
|
2013-11-26 11:14:24 +00:00
|
|
|
post 'basic_infos/role_update' => "basic_infos#role_update"
|
|
|
|
match 'basic_infos/basic_info_update' => "basic_infos#basic_info_update"
|
2011-08-18 05:43:33 +00:00
|
|
|
# routes for admin
|
2011-04-13 10:19:51 +00:00
|
|
|
namespace :admin do
|
2013-05-23 03:55:57 +00:00
|
|
|
match 'user_actions' => 'user_actions#index'
|
2013-04-24 11:21:11 +00:00
|
|
|
match 'system_preference' => "sites#show_system_preference",:as=>"system_preference"
|
2012-04-13 04:10:47 +00:00
|
|
|
mount Resque::Server.new, :at => "/resque"
|
2012-05-16 03:07:11 +00:00
|
|
|
resources :assets do
|
|
|
|
collection do
|
2013-09-09 15:10:04 +00:00
|
|
|
post 'file_upload'
|
2012-08-13 16:59:01 +00:00
|
|
|
get 'delete'
|
2013-09-09 15:10:04 +00:00
|
|
|
post 'delete_files'
|
2012-05-16 03:07:11 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
resources :asset_categories
|
2012-05-16 10:19:41 +00:00
|
|
|
resources :asset_tags
|
2013-07-02 08:46:44 +00:00
|
|
|
resources :app_auths
|
|
|
|
|
|
|
|
resources :object_auths do
|
2012-05-11 08:46:36 +00:00
|
|
|
match 'new_interface/:ob_type/:title/new' => "object_auths_new_interface#new" ,:as => :init_ob_auth,:via => :get
|
|
|
|
match 'new_interface' => "object_auths_new_interface#setting" ,:as => :ob_auth,:via => :get
|
|
|
|
match 'new_interface' => "object_auths_new_interface#update_setting" ,:as => :ob_auth,:via => :post
|
2013-07-02 08:46:44 +00:00
|
|
|
match 'new_interface' => "object_auths_new_interface#user_list" ,:as => :ob_auth_show,:via => :put
|
2012-02-09 09:48:51 +00:00
|
|
|
end
|
2012-02-07 08:16:48 +00:00
|
|
|
|
2012-05-01 10:23:42 +00:00
|
|
|
match 'ad_banners/:id/preview' => 'ad_banners#realtime_preview',:as => :realtime_preview_ad_banner,:via => :put
|
2012-05-16 08:42:43 +00:00
|
|
|
match 'ad_banners/:id/rename' => 'ad_banners#rename',:as => :rename_ad_banner,:via => :post
|
|
|
|
|
2013-08-09 01:24:26 +00:00
|
|
|
resources :ad_images ,:except => [:show]
|
|
|
|
|
|
|
|
resources :ad_banners #do
|
|
|
|
# collection do
|
|
|
|
# match 'new_ad_image' => 'ad_images#new',:as => :new_ad_image,:via => :get
|
|
|
|
# match 'new_ad_image' => 'ad_images#create',:as => :create_ad_image,:via => :post
|
|
|
|
# end
|
|
|
|
# resources :ad_images ,:except => [:show]
|
|
|
|
#end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2013-07-10 08:42:25 +00:00
|
|
|
match 'authorizations/add_roles/:module(/:type(/:id))' => 'authorizations#add_roles', :as => :add_roles_authorizations
|
|
|
|
match 'authorizations/add_users/:module(/:type(/:id))' => 'authorizations#add_users', :as => :add_users_authorizations
|
|
|
|
match 'authorizations/modal_select/:module(/:type(/:id))' => 'authorizations#modal_select', :as => :modal_select_authorizations
|
|
|
|
match 'authorizations/remove_users/:module(/:type(/:id))' => 'authorizations#remove_users', :as => :remove_users_authorizations, :via => :delete
|
|
|
|
match 'authorizations(/:module(/:type(/:id)))' => 'authorizations#index', :as => :authorizations
|
2013-07-02 08:46:44 +00:00
|
|
|
|
|
|
|
resources :dashboards do
|
|
|
|
collection do
|
|
|
|
get 'reload_all_content'
|
|
|
|
get 'reload_most_visited'
|
|
|
|
get 'reload_recent_update'
|
2013-10-30 10:23:46 +00:00
|
|
|
get 'get_cpu_usage'
|
|
|
|
get 'get_mem_usage'
|
|
|
|
get 'get_disk_usage'
|
|
|
|
get 'get_month_traffic'
|
2013-07-02 08:46:44 +00:00
|
|
|
end
|
|
|
|
end
|
2011-07-19 10:31:53 +00:00
|
|
|
resources :designs do
|
2011-09-01 11:08:45 +00:00
|
|
|
collection do
|
|
|
|
get 'upload_package'
|
2012-08-13 16:59:01 +00:00
|
|
|
get 'delete'
|
2011-09-01 11:08:45 +00:00
|
|
|
post 'upload_package'
|
|
|
|
end
|
2011-07-19 10:31:53 +00:00
|
|
|
member do
|
2011-07-27 09:23:01 +00:00
|
|
|
post 'edit_file' => 'designs#edit_file'
|
2012-10-24 10:40:38 +00:00
|
|
|
post 'update_file' => 'designs#update_file'
|
|
|
|
post 'upload_image' => 'designs#upload_image'
|
2011-07-19 10:31:53 +00:00
|
|
|
end
|
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2011-12-23 10:34:21 +00:00
|
|
|
resources :infos do
|
|
|
|
get 'add_attribute_field'
|
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2013-10-23 07:51:49 +00:00
|
|
|
resources :items do
|
|
|
|
collection do
|
|
|
|
get 'get_page_design_module_json'
|
|
|
|
post 'update_position'
|
|
|
|
end
|
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2011-05-13 01:08:42 +00:00
|
|
|
resources :links do
|
2013-10-23 10:28:09 +00:00
|
|
|
collection do
|
|
|
|
get 'get_link_setting_json'
|
|
|
|
end
|
2011-05-13 01:08:42 +00:00
|
|
|
member do
|
|
|
|
get 'delete'
|
|
|
|
end
|
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2011-06-01 04:00:41 +00:00
|
|
|
resources :pages do
|
2013-01-23 10:51:18 +00:00
|
|
|
collection do
|
2013-10-23 07:51:49 +00:00
|
|
|
get 'get_display_style'
|
|
|
|
get 'get_page_setting_json'
|
2011-06-01 04:00:41 +00:00
|
|
|
end
|
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2011-12-23 10:34:21 +00:00
|
|
|
resources :module_apps do
|
2013-07-02 08:46:44 +00:00
|
|
|
# match 'manager_auth_proc' => "module_apps_new_interface#index", :as => :manager_auth_proc, :via => :get
|
2012-05-11 08:46:36 +00:00
|
|
|
match 'manager_auth_proc' => "module_apps_new_interface#setting" ,:as => :manager_auth_proc,:via => :get
|
|
|
|
match 'manager_auth_proc' => "module_apps_new_interface#update_setting" ,:as => :manager_auth_proc,:via => :post
|
|
|
|
match 'manager_auth_proc' => "module_apps_new_interface#user_list" ,:as => :manager_auth_show,:via => :put
|
2012-01-19 09:47:52 +00:00
|
|
|
resources :app_auths do
|
|
|
|
member do
|
|
|
|
match 'remove/:type/:target_id' ,:action=> 'remove',:via => "delete",:as =>:remove
|
|
|
|
end
|
|
|
|
end
|
2013-07-02 08:46:44 +00:00
|
|
|
resources :categories do
|
|
|
|
member do
|
|
|
|
post 'toggle'
|
|
|
|
end
|
|
|
|
end
|
2012-11-17 19:07:50 +00:00
|
|
|
|
2011-12-23 10:34:21 +00:00
|
|
|
member do
|
2012-01-13 10:20:04 +00:00
|
|
|
match 'assign_manager' ,:action=> 'assign_manager',:via => "post",:as =>:assign_manager
|
|
|
|
match 'assign_sub_manager' ,:action=> 'assign_sub_manager',:via => "post",:as =>:assign_sub_manager
|
|
|
|
|
|
|
|
match 'remove_manager/:app_manager_id' ,:action=> 'remove_manager',:via => "delete",:as =>:remove_manager
|
|
|
|
match 'remove_sub_manager/:app_sub_manager_id' ,:action=> 'remove_sub_manager',:via => "delete",:as =>:remove_sub_manager
|
2011-12-23 10:34:21 +00:00
|
|
|
end
|
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2013-07-02 08:46:44 +00:00
|
|
|
resources :module_tags do
|
|
|
|
collection do
|
|
|
|
post 'delete_tags'
|
|
|
|
post 'merge'
|
|
|
|
post 'remove_default'
|
|
|
|
post 'update_included_default'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2012-02-16 04:16:27 +00:00
|
|
|
resources :page_parts do
|
2013-10-28 03:37:56 +00:00
|
|
|
collection do
|
|
|
|
get 'get_display_style'
|
|
|
|
get 'get_page_module_json'
|
|
|
|
get 'get_page_setting_json'
|
|
|
|
end
|
2012-02-16 04:16:27 +00:00
|
|
|
member do
|
2012-04-23 18:30:40 +00:00
|
|
|
get 'reload_r_tag_options'
|
2012-02-16 04:16:27 +00:00
|
|
|
end
|
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2012-10-15 07:30:48 +00:00
|
|
|
resources :plugins
|
2011-08-18 05:43:33 +00:00
|
|
|
resources :purchases do
|
2011-11-16 07:21:31 +00:00
|
|
|
collection do
|
|
|
|
get 'install_app'
|
|
|
|
end
|
2011-08-18 05:43:33 +00:00
|
|
|
member do
|
2012-12-06 15:20:27 +00:00
|
|
|
get 'buy_template'
|
2011-08-18 05:43:33 +00:00
|
|
|
get 'download'
|
|
|
|
end
|
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2011-12-23 10:34:21 +00:00
|
|
|
resources :roles do
|
2013-01-08 08:58:01 +00:00
|
|
|
get 'role_field'
|
|
|
|
get 'sub_role_field'
|
2013-04-25 09:57:34 +00:00
|
|
|
get 'role_status'
|
|
|
|
get 'role_category'
|
2013-01-08 08:58:01 +00:00
|
|
|
get 'sub_role'
|
2011-12-23 10:34:21 +00:00
|
|
|
get 'add_sub_role'
|
2013-01-08 08:58:01 +00:00
|
|
|
get 'edit_sub_role'
|
2011-12-23 10:34:21 +00:00
|
|
|
get 'add_attribute_field'
|
2013-08-09 07:07:05 +00:00
|
|
|
post 'toggle'
|
|
|
|
post 'sub_role_toggle'
|
2011-12-23 10:34:21 +00:00
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2013-08-09 07:07:05 +00:00
|
|
|
resources :role_filters do
|
|
|
|
post 'toggle'
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :role_statuses do
|
|
|
|
post 'toggle'
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :role_categorys do
|
|
|
|
post 'toggle'
|
|
|
|
end
|
2013-04-25 09:57:34 +00:00
|
|
|
|
2012-05-06 16:54:18 +00:00
|
|
|
resources :sites do
|
2012-07-25 07:10:15 +00:00
|
|
|
get 'mail_setting'
|
2012-05-06 16:54:18 +00:00
|
|
|
get 'site_info'
|
2013-11-25 04:41:32 +00:00
|
|
|
get 'responsive_setting'
|
2013-09-02 03:20:39 +00:00
|
|
|
get 'search_engine'
|
2012-07-25 07:10:15 +00:00
|
|
|
get 'sitemap'
|
2012-07-27 08:53:12 +00:00
|
|
|
get 'sitemap_frontend'
|
2012-07-26 07:37:29 +00:00
|
|
|
get 'sitemap_toggle', :on => :member
|
2012-05-06 16:54:18 +00:00
|
|
|
get 'system_info'
|
|
|
|
get 'ui_theme'
|
2012-12-07 04:14:31 +00:00
|
|
|
get 'change_design'
|
2013-11-27 09:50:33 +00:00
|
|
|
get 'reset_default_locale'
|
2013-09-02 09:31:34 +00:00
|
|
|
get 'preference'
|
2012-05-06 16:54:18 +00:00
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2013-07-02 08:46:44 +00:00
|
|
|
resources :tags do
|
|
|
|
collection do
|
|
|
|
post 'add_to_default'
|
|
|
|
post 'delete_tags'
|
|
|
|
post 'merge'
|
|
|
|
end
|
|
|
|
end
|
2011-11-17 12:02:58 +00:00
|
|
|
resources :users
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2013-11-29 08:20:23 +00:00
|
|
|
match "users_new_interface/registration_approval" => "users_new_interface#registration_approval"
|
2013-12-05 09:09:03 +00:00
|
|
|
match "users_new_interface/approve_selected" => "users_new_interface#approve_selected"
|
|
|
|
match "users_new_interface/delete_selected" => "users_new_interface#delete_selected"
|
2013-11-29 08:20:23 +00:00
|
|
|
|
2012-10-08 08:58:33 +00:00
|
|
|
resources :users_new_interface do
|
|
|
|
member do
|
|
|
|
get 'temp_edit'
|
|
|
|
end
|
2013-09-26 10:59:23 +00:00
|
|
|
collection do
|
2013-10-07 07:52:10 +00:00
|
|
|
get 'edit_order_card'
|
|
|
|
get 'edit_order_list'
|
|
|
|
post 'update_order_card'
|
|
|
|
post 'update_order_list'
|
2013-09-26 10:59:23 +00:00
|
|
|
end
|
2013-04-25 09:57:34 +00:00
|
|
|
match "edit_passwd" => "users_new_interface#edit_passwd" ,:as => :edit_passwd
|
2013-10-18 07:48:11 +00:00
|
|
|
match "edit_user_data" => "users_new_interface#edit_user_data" ,:as => :edit_user_data
|
|
|
|
match "setting_account" => "users_new_interface#setting_account" ,:as => :setting_account
|
2013-10-18 11:02:14 +00:00
|
|
|
match "edit_privilege" => "users_new_interface#edit_privilege" ,:as => :edit_privilege
|
2013-11-29 08:20:23 +00:00
|
|
|
match "approve_registration" => "users_new_interface#approve_registration", :as => :approve_registration
|
|
|
|
|
2012-10-08 08:58:33 +00:00
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
|
2012-11-26 02:14:43 +00:00
|
|
|
resources :member_selects do
|
2013-01-08 10:12:28 +00:00
|
|
|
match 'member_select_search' => "member_selects#member_select_search" ,:as => :member_select_search,:via => "post"
|
|
|
|
match 'member_select_add' => "member_selects#member_select_add" ,:as => :member_select_add,:via => "post"
|
2013-07-02 08:46:44 +00:00
|
|
|
collection do
|
|
|
|
get 'select_members'
|
|
|
|
post 'set_roles'
|
|
|
|
post 'set_users'
|
|
|
|
end
|
2013-01-08 10:12:28 +00:00
|
|
|
end
|
2012-10-08 08:58:33 +00:00
|
|
|
|
2012-12-06 15:20:27 +00:00
|
|
|
match 'module_store' => 'module_store#index'
|
|
|
|
match 'module_store/show' => 'module_store#show'
|
|
|
|
match 'template_store' => 'template_store#index'
|
2014-01-06 06:47:44 +00:00
|
|
|
match 'template_store/download_theme' => "template_store#download_theme"
|
2012-12-06 15:20:27 +00:00
|
|
|
match 'template_store/template/:id' => 'template_store#show', :as => :template_store_template
|
2014-01-06 06:47:44 +00:00
|
|
|
# match 'template_store/cool_method' => "template_store#cool_method"
|
2012-11-28 09:27:23 +00:00
|
|
|
|
2011-04-13 10:19:51 +00:00
|
|
|
end
|
2011-08-18 05:43:33 +00:00
|
|
|
# end admin
|
2012-11-17 19:07:50 +00:00
|
|
|
|
2011-04-13 10:19:51 +00:00
|
|
|
namespace :panel do
|
|
|
|
resources :users
|
|
|
|
end
|
2012-06-04 10:00:06 +00:00
|
|
|
|
2012-11-01 12:42:40 +00:00
|
|
|
resources :desktop_widgets do
|
|
|
|
collection do
|
2012-11-17 19:07:50 +00:00
|
|
|
get 'upload'
|
|
|
|
get 'delete'
|
|
|
|
post 'upload'
|
2012-11-01 12:42:40 +00:00
|
|
|
end
|
2013-07-25 09:18:24 +00:00
|
|
|
end
|
|
|
|
match "desktop_themes/settings" => "desktop_themes#settings"
|
|
|
|
resources :desktop_themes do
|
|
|
|
|
|
|
|
collection do
|
|
|
|
get 'upload'
|
|
|
|
get 'delete'
|
|
|
|
post 'upload'
|
|
|
|
end
|
|
|
|
|
2012-11-01 12:42:40 +00:00
|
|
|
end
|
2012-12-19 09:15:31 +00:00
|
|
|
|
2013-05-14 09:18:05 +00:00
|
|
|
resources :desktop_apps do
|
|
|
|
collection do
|
|
|
|
get 'upload'
|
|
|
|
get 'delete'
|
|
|
|
post 'upload'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-03-14 09:48:45 +00:00
|
|
|
match "/desktop/compatibility" => "desktop#compatibility"
|
2012-12-19 09:15:31 +00:00
|
|
|
match "desktop" => "desktop#index"
|
2013-10-15 11:00:38 +00:00
|
|
|
match "/desktop/desktop_container" => "desktop#desktop_container"
|
2013-05-02 08:45:33 +00:00
|
|
|
match '/desktop/appactivation'=>'desktop#appactivation'
|
2013-01-07 08:38:02 +00:00
|
|
|
match '/desktop/app_manager'=>'desktop#app_manager'
|
|
|
|
match '/desktop/allsections'=>'desktop#allsections'
|
|
|
|
match '/desktop/settings'=>'desktop#settings'
|
|
|
|
match '/desktop/get_desktop_settings/'=>'desktop#get_desktop_settings'
|
|
|
|
match '/desktop/save_desktop_settings/'=>'desktop#save_desktop_settings'
|
|
|
|
match '/desktop/getgroups/'=>'desktop#getgroups'
|
|
|
|
match '/desktop/getsectionlist/'=>'desktop#getsectionlist'
|
2013-07-25 09:18:24 +00:00
|
|
|
match '/desktop/get_themes/'=>'desktop#get_themes'
|
2013-01-07 08:38:02 +00:00
|
|
|
match '/desktop/sections/'=>'desktop#sections'
|
|
|
|
match '/desktop/getapplist/'=>'desktop#getapplist'
|
2013-05-02 08:45:33 +00:00
|
|
|
match '/desktop/getapplistforManager/'=>'desktop#getapplistforManager'
|
2013-01-07 08:38:02 +00:00
|
|
|
match '/desktop/newpositions/'=>'desktop#newpositions'
|
|
|
|
match '/desktop/connections/'=>'desktop#connections'
|
|
|
|
match '/desktop/widget_layout' => 'desktop#widget_layout'
|
|
|
|
match '/desktop/temp_func/'=>'desktop#temp_func'
|
|
|
|
|
2012-11-17 19:07:50 +00:00
|
|
|
# namespace :desktop_research do
|
2012-11-01 12:42:40 +00:00
|
|
|
match '/twitter/'=>'otheraccounts#twitter'
|
|
|
|
match '/forgmail/'=>'otheraccounts#gmail'
|
2012-11-08 09:01:59 +00:00
|
|
|
match '/otheraccounts/getaccounts'=>'otheraccounts#getaccounts'
|
2013-12-26 09:41:05 +00:00
|
|
|
match '/desktop/save_account_info/'=>'otheraccounts#saveaccountinfo'
|
2012-05-04 12:28:12 +00:00
|
|
|
|
2012-06-26 07:59:28 +00:00
|
|
|
match '/desktop_appstore/appstore'=>'desktop_appstore#appstore'
|
2012-11-08 09:01:59 +00:00
|
|
|
match '/desktop_appstore/onlinestore'=>'desktop_appstore#onlinestore'
|
2012-06-26 07:59:28 +00:00
|
|
|
match '/desktop_appstore/widgets'=>'desktop_appstore#widgets'
|
|
|
|
match '/desktop_appstore/getuserwidgets'=>'desktop_appstore#getuserwidgets'
|
|
|
|
match '/desktop_appstore/widgets_settings'=>'desktop_appstore#widgets_settings'
|
|
|
|
|
|
|
|
match '/desktop_orbit/orbit' => 'desktop_orbit#orbit'
|
2012-08-21 11:36:49 +00:00
|
|
|
|
2012-07-02 13:06:20 +00:00
|
|
|
match '/desktop_orbit/eventajaxload'=> 'desktop_orbit#eventajaxload'
|
2012-07-06 08:11:03 +00:00
|
|
|
match '/desktop_orbit/gettimelinespan' => 'desktop_orbit#gettimelinespan'
|
2012-07-04 10:49:10 +00:00
|
|
|
|
2013-06-14 08:08:30 +00:00
|
|
|
match "/facebook/register_fb" => "facebook#register_fb"
|
|
|
|
match "/facebook/get_friends" => "facebook#get_friends"
|
2013-12-26 11:03:04 +00:00
|
|
|
match "/facebook/get_feed" => "facebook#get_feed"
|
2013-08-01 13:50:49 +00:00
|
|
|
match "/facebook/disconnect" => "facebook#disconnect"
|
2013-11-25 17:00:51 +00:00
|
|
|
match "/facebook/server" => "facebook#server_redirect"
|
2013-11-26 11:14:24 +00:00
|
|
|
match "/facebook/profile_import" => "facebook#profile_import"
|
2013-08-01 13:50:49 +00:00
|
|
|
match "/desktop/wallpaper_upload" => "desktop#wallpaper_upload"
|
2012-11-17 19:07:50 +00:00
|
|
|
|
|
|
|
#match '/desktop_orbit/eventajaxload' => 'desktop_publications#create_journal'
|
2012-07-03 11:45:47 +00:00
|
|
|
#match '/desktop_orbit/eventajaxload' => 'desktop_publications#delete_journal'
|
|
|
|
# match '/desktop_orbit/eventajaxload' => 'desktop_publications#update_journal'
|
2012-06-28 09:31:48 +00:00
|
|
|
|
2013-01-16 00:14:42 +00:00
|
|
|
def controller_paths(controller, actions, scope=nil)
|
2013-01-11 11:14:48 +00:00
|
|
|
actions.each do |action|
|
|
|
|
if action.eql? 'index'
|
|
|
|
match "#{controller}" => "#{controller}##{action}", :as => "#{controller}"
|
|
|
|
else
|
|
|
|
match "#{controller}/#{action}(/:id)" => "#{controller}##{action}", :as => "#{controller}_#{action}"
|
|
|
|
end
|
|
|
|
end
|
2012-12-19 09:15:31 +00:00
|
|
|
end
|
2012-11-17 19:07:50 +00:00
|
|
|
|
2013-10-11 13:08:22 +00:00
|
|
|
controller_paths :front, %w[show_breadcrumb show_banner show_footer show_menu show_page_sub_menu show_site_sub_menu show_sitemap show_tag_cloud show_terms_of_use]
|
2013-01-16 00:14:42 +00:00
|
|
|
# controller_paths :mobile, %w[index announcement announcement_content dialog_contact dialog_copyright dialog_language map page page_content]
|
2013-01-11 11:14:48 +00:00
|
|
|
|
2013-01-16 00:14:42 +00:00
|
|
|
# scope 'app' do
|
|
|
|
# controller_paths :mobile, %w[index announcement announcement_content dialog_contact dialog_copyright dialog_language map page page_content]
|
|
|
|
# end
|
2012-12-19 19:21:50 +00:00
|
|
|
|
2013-01-16 00:14:42 +00:00
|
|
|
scope '/mobile(/:app)' do
|
|
|
|
match '/announcement' => 'mobile#announcement', :as => 'mobile_announcement'
|
|
|
|
match '/announcement_content/:id' => 'mobile#announcement_content', :as => 'mobile_announcement_content'
|
|
|
|
match '/dialog_contact' => 'mobile#dialog_contact', :as => 'mobile_dialog_contact'
|
|
|
|
match '/dialog_copyright' => 'mobile#dialog_copyright', :as => 'mobile_dialog_copyright'
|
|
|
|
match '/dialog_language' => 'mobile#dialog_language', :as => 'mobile_dialog_language'
|
|
|
|
match '/map' => 'mobile#map', :as => 'mobile_map'
|
|
|
|
match '/page' => 'mobile#page', :as => 'mobile_page'
|
|
|
|
match '/page_content/:id' => 'mobile#page_content', :as => 'mobile_page_content'
|
2012-12-19 19:21:50 +00:00
|
|
|
root :to => 'mobile#index', :as => 'mobile'
|
|
|
|
end
|
|
|
|
|
2013-02-06 10:20:45 +00:00
|
|
|
match '/panel/orbit_app/widget/:type' => 'pages#index_from_link', :constraints => lambda { |request|
|
|
|
|
request.query_string.include?("same_page_id=")
|
|
|
|
}
|
2013-01-03 11:38:14 +00:00
|
|
|
match '/panel/orbit_app/widget/:type' => 'default_widget#default_widget'
|
2012-12-19 19:21:50 +00:00
|
|
|
|
2012-11-17 19:07:50 +00:00
|
|
|
|
2012-09-05 11:08:48 +00:00
|
|
|
match '/panel/:app_name/front_end/:app_action/:id(/:controller_action)' => 'pages#show_from_link', :constraints => lambda { |request|
|
2013-05-10 05:04:56 +00:00
|
|
|
!request.query_string.include?("inner=true") && !request.query_string.include?("standalone=true")
|
2012-01-24 10:16:58 +00:00
|
|
|
}
|
2012-11-17 19:07:50 +00:00
|
|
|
|
2012-01-24 10:16:58 +00:00
|
|
|
match '/panel/:app_name/front_end/:app_action' => 'pages#index_from_link', :constraints => lambda { |request|
|
2013-05-10 05:04:56 +00:00
|
|
|
!request.query_string.include?("inner=true") && !request.query_string.include?("standalone=true")
|
2012-01-24 10:16:58 +00:00
|
|
|
}
|
2012-08-07 21:40:50 +00:00
|
|
|
|
|
|
|
match '/share/:model/:id' => 'application#render_share'
|
2012-11-17 19:07:50 +00:00
|
|
|
|
2011-08-18 05:43:33 +00:00
|
|
|
# routes for gridfs files
|
2012-06-26 09:46:02 +00:00
|
|
|
match "/gridfs/*path" => "gridfs#serve"
|
|
|
|
|
2011-09-01 11:08:45 +00:00
|
|
|
# match "/images/*path" => "gridfs#serve_images"
|
|
|
|
# match "/admin/pages/images/*path" => "gridfs#serve_images"
|
2012-11-17 19:07:50 +00:00
|
|
|
|
2011-08-18 05:43:33 +00:00
|
|
|
# routes for pages to generate
|
2011-04-12 07:21:25 +00:00
|
|
|
match '*page_name' => 'pages#show', :as => :page, :constraints => lambda{|request|
|
|
|
|
!request.path.starts_with?("/panel")
|
|
|
|
}
|
2012-11-17 19:07:50 +00:00
|
|
|
|
2011-04-13 10:19:51 +00:00
|
|
|
root :to => 'pages#index'
|
2012-11-17 19:07:50 +00:00
|
|
|
|
2013-01-09 08:54:33 +00:00
|
|
|
match '/panel/ad_banner/front_end/inner_page/:id' => 'front#show_inner_ad_image', :as => :front_show_inner_ad_image
|
|
|
|
|
2009-05-07 16:53:18 +00:00
|
|
|
end
|