|
|
|
@@ -8,8 +8,10 @@ Rails.application.routes.draw do |
|
|
|
# Serve websocket cable requests in-process
|
|
|
|
mount ActionCable.server => '/cable'
|
|
|
|
|
|
|
|
get 'attachments/entries/get_file', to: 'attachments#get_file'
|
|
|
|
get 'attachments/download/:id', to: 'attachments#show'
|
|
|
|
get 'attachments/download/:id/:filename', to: 'attachments#show'
|
|
|
|
|
|
|
|
get 'auth/qq/callback', to: 'oauth/qq#create'
|
|
|
|
get 'auth/failure', to: 'oauth/base#auth_failure'
|
|
|
|
get 'auth/cas/callback', to: 'oauth/cas#create'
|
|
|
|
@@ -18,6 +20,8 @@ Rails.application.routes.draw do |
|
|
|
get 'oauth/register', to: 'oauth#register'
|
|
|
|
post 'oauth/auto_register', to: 'oauth#auto_register'
|
|
|
|
|
|
|
|
resources :edu_settings
|
|
|
|
|
|
|
|
resources :edu_settings
|
|
|
|
scope '/api' do
|
|
|
|
namespace :ci do
|
|
|
|
@@ -48,7 +52,7 @@ Rails.application.routes.draw do |
|
|
|
resources :compose_projects, only: [:create, :destroy]
|
|
|
|
end
|
|
|
|
resources :attachments do
|
|
|
|
member do
|
|
|
|
member do
|
|
|
|
post :preview_attachment
|
|
|
|
end
|
|
|
|
collection do
|
|
|
|
@@ -104,6 +108,7 @@ Rails.application.routes.draw do |
|
|
|
collection do
|
|
|
|
post :migrate
|
|
|
|
get :group_type_list
|
|
|
|
get :recommend
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|