From 0d99ccce80a4896ea26ef96e772534abefcb119d Mon Sep 17 00:00:00 2001 From: yystopf Date: Mon, 29 Sep 2025 16:04:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9A=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B7=AF=E7=94=B1=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes/api.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/routes/api.rb b/config/routes/api.rb index b73baf874..0003cf7ad 100644 --- a/config/routes/api.rb +++ b/config/routes/api.rb @@ -70,6 +70,11 @@ defaults format: :json do end end + scope 'organizations/:owner', module: :organizations do + resources :sync_repositories, only: [:create] + resources :projects, only: [:index] + end + scope ':owner' do resource :users, path: '/', only: [:update, :edit, :destroy] do collection do @@ -83,10 +88,6 @@ defaults format: :json do patch :update_phone end end - scope module: :organizations do - resources :sync_repositories, only: [:create] - resources :projects, only: [:index] - end scope module: :users do resources :projects, only: [:index] resources :feedbacks, only: [:create]