|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
# Example: :via => :get ====> :via => :get
|
|
|
|
|
|
|
|
|
|
RedmineApp::Application.routes.draw do ## oauth相关
|
|
|
|
|
|
|
|
|
|
# zhushi
|
|
|
|
|
match 'oauth', to: 'oauth#index'
|
|
|
|
|
match 'oauth/authorize', to: 'oauth#authorize', :via => [:get, :post]
|
|
|
|
|
match 'oauth/token', to: 'oauth#token', :via => :post
|
|
|
|
@ -52,6 +52,11 @@ RedmineApp::Application.routes.draw do ## oauth相关
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# library
|
|
|
|
|
resources :libraries do
|
|
|
|
|
get :publish_success, on: :collection
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
resources :ec_course_evaluations do
|
|
|
|
|
member do
|
|
|
|
|
match 'import_score', :via => [:post]
|
|
|
|
@ -2660,11 +2665,6 @@ RedmineApp::Application.routes.draw do ## oauth相关
|
|
|
|
|
|
|
|
|
|
get '/:sub_dir_name', :to => 'org_subfields#show', :as => 'show_subfield_without_id'
|
|
|
|
|
|
|
|
|
|
# library
|
|
|
|
|
resources :libraries do
|
|
|
|
|
get :publish_success, on: :collection
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
Dir.glob File.expand_path("plugins/*", Rails.root) do |plugin_dir|
|
|
|
|
|
file = File.join(plugin_dir, "config/routes.rb")
|
|
|
|
|
if File.exists?(file)
|
|
|
|
|