diff --git a/config/routes.rb b/config/routes.rb index fa910cc..423672d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -13,6 +13,11 @@ Rails.application.routes.draw do get 'auth/cas/callback', to: 'oauth/cas#create' scope '/api' do + resources :attachments do + collection do + delete :destroy_files + end + end resources :sync_forge, only: [:create] #同步用户 resources :composes do resources :compose_projects, only: [:create, :destroy] @@ -319,12 +324,6 @@ Rails.application.routes.draw do end - resources :attachments do - collection do - delete :destroy_files - end - end - resources :repertoires, only: [:index] scope module: :projects do