ADD recommand projects api

This commit is contained in:
Jasder
2020-10-04 12:01:26 +08:00
parent 7f9316075c
commit c6a7719d4d
4 changed files with 71 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ Rails.application.routes.draw do
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'
@@ -19,7 +19,7 @@ Rails.application.routes.draw do
get 'oauth/bind', to: 'oauth/educoder#bind'
get 'oauth/register', to: 'oauth#register'
post 'oauth/auto_register', to: 'oauth#auto_register'
resources :edu_settings
scope '/api' do
@@ -33,7 +33,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
@@ -89,6 +89,7 @@ Rails.application.routes.draw do
collection do
post :migrate
get :group_type_list
get :recommend
end
end