修改附件下载报错的问题

This commit is contained in:
sylor_huang@126.com 2020-03-18 18:38:57 +08:00
parent fe4aefa3b6
commit 829a31ded7
1 changed files with 5 additions and 6 deletions

View File

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