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]