|
|
|
@ -9,8 +9,6 @@ Rails.application.routes.draw do
|
|
|
|
|
get 'auth/qq/callback', to: 'oauth/qq#create'
|
|
|
|
|
get 'auth/failure', to: 'oauth/base#auth_failure'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :edu_settings
|
|
|
|
|
scope '/api' do
|
|
|
|
|
resources :composes do
|
|
|
|
@ -74,75 +72,7 @@ Rails.application.routes.draw do
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
get '/:login/:repo_identifier', to: 'repositories#show'
|
|
|
|
|
resources :repositories, path: '/:login/:repo_identifier', only: [:index] do
|
|
|
|
|
collection do
|
|
|
|
|
get :entries
|
|
|
|
|
match :sub_entries, :via => [:get, :put]
|
|
|
|
|
get :commits
|
|
|
|
|
get :single_commit
|
|
|
|
|
post :files
|
|
|
|
|
get :tags
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
resources :contents, path: '/:login/:repo_identifier/contents', only: [:create] do
|
|
|
|
|
collection do
|
|
|
|
|
put 'files/update', :action => 'update_file'
|
|
|
|
|
delete 'files/delete', :action => 'delete_file'
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# resources :memos do
|
|
|
|
|
# member do
|
|
|
|
|
# post :sticky_or_cancel
|
|
|
|
|
# post :hidden
|
|
|
|
|
# get :more_reply
|
|
|
|
|
# end
|
|
|
|
|
#
|
|
|
|
|
# collection do
|
|
|
|
|
# post :reply
|
|
|
|
|
# end
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
# resources :hacks, path: :problems, param: :identifier do
|
|
|
|
|
# collection do
|
|
|
|
|
# get :unpulished_list
|
|
|
|
|
# end
|
|
|
|
|
# member do
|
|
|
|
|
# post :publish
|
|
|
|
|
# get :start
|
|
|
|
|
# post :update_set
|
|
|
|
|
# delete :delete_set
|
|
|
|
|
# end
|
|
|
|
|
# resources :comments do
|
|
|
|
|
# post :reply
|
|
|
|
|
# end
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
# resources :hack_user_lastest_codes, path: :myproblems, param: :identifier do
|
|
|
|
|
# member do
|
|
|
|
|
# post :update_code
|
|
|
|
|
# get :code_debug
|
|
|
|
|
# get :code_submit
|
|
|
|
|
# match :listen_result, :via => [:get, :post]
|
|
|
|
|
# get :result
|
|
|
|
|
# get :submit_records
|
|
|
|
|
# post :restore_initial_code
|
|
|
|
|
# end
|
|
|
|
|
#
|
|
|
|
|
# collection do
|
|
|
|
|
# get :record_detail
|
|
|
|
|
# end
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# resources :tem_tests
|
|
|
|
|
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
resources :accounts do
|
|
|
|
|
|
|
|
|
|
collection do
|
|
|
|
@ -162,9 +92,7 @@ Rails.application.routes.draw do
|
|
|
|
|
get :homepage_info
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :repositories do
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
collection do
|
|
|
|
@ -204,6 +132,31 @@ Rails.application.routes.draw do
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
get '/:login/:repo_identifier', to: 'repositories#show'
|
|
|
|
|
resources :repositories, path: '/:login/:repo_identifier', only: [:index] do
|
|
|
|
|
collection do
|
|
|
|
|
get :entries
|
|
|
|
|
match :sub_entries, :via => [:get, :put]
|
|
|
|
|
get :commits
|
|
|
|
|
get :single_commit
|
|
|
|
|
post :files
|
|
|
|
|
get :tags
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
resources :contents, path: '/:login/:repo_identifier/contents', only: [:create] do
|
|
|
|
|
collection do
|
|
|
|
|
put 'files/update', :action => 'update_file'
|
|
|
|
|
delete 'files/delete', :action => 'delete_file'
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :users_for_private_messages, only: [:index]
|
|
|
|
|
|
|
|
|
|
resources :myshixuns, param: :identifier, shallow: true do
|
|
|
|
|