merge with november_presentation

This commit is contained in:
chris2tof committed 2011-12-20 16:47:17 +08:00
1 parent afbffe37d5
commit a09f8e4551
101 files changed
+891 -10632

No files matched your search

+1
View File
@@ -1,6 +1,7 @@
forbidden_item_names:
- admin
- panel
- appfront
markups:
- text_field
+12 -2
View File
@@ -7,12 +7,13 @@ PrototypeR4::Application.routes.draw do
match '/site/public_key', :to => CentralServerExchangeApp
match '/site/update', :to => GithubApp
match '/purchase/:type', :to => CentralServerExchangeApp
match "/panel/:app_name/frontend/:action" => redirect {|params| "/panel/#{params[:app_name]}/#{params[:action]}" }
# routes for admin
namespace :admin do
resources :assets
resources :app_auths
resources :designs do
collection do
get 'upload_package'
@@ -37,6 +38,11 @@ PrototypeR4::Application.routes.draw do
get 'reload_themes'
end
end
resources :module_apps do
member do
get 'reload_frontend_pages'
end
end
resources :page_parts
resources :purchases do
collection do
@@ -60,6 +66,10 @@ PrototypeR4::Application.routes.draw do
namespace :panel do
resources :users
end
match '/panel/:app_name/front_end/*page_name' => 'pages#appfront', :via => "get",:constraints => lambda { |request|
!request.query_string.include?("inner=true")
}
# routes for gridfs files
match "/gridfs/*path" => "gridfs#serve"