diff --git a/config/routes.rb b/config/routes.rb index 501a024b4..aab65db4c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -142,7 +142,7 @@ Rails.application.routes.draw do post '/blockchain/issue/get_token_num', to: 'users#blockchain_get_issue_token_num' get '/projects/blockchain/get_unclosed_issue_list', to: 'users#blockchain_get_unclosed_issue_list' - resources :owners, only: [:index, :show] + resources :owners, only: [:index, :show], constraints: { id: /[^\/]+/ } scope module: :organizations do resources :organizations, except: [:edit, :new] do