From 829a31ded75b4cc697c9911fec7668e7616c0886 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 18 Mar 2020 18:38:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=99=84=E4=BB=B6=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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