Skip to content

Commit

Permalink
Rename ProviderPartnership controller to AccreditedPartnership
Browse files Browse the repository at this point in the history
  • Loading branch information
inulty-dfe committed Dec 19, 2024
1 parent 710a800 commit 90d26ed
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Publish
module Providers
class ProviderPartnershipsController < PublishController
class AccreditedPartnershipsController < PublishController
helper_method :accredited_provider_id

def index; end
Expand Down
8 changes: 4 additions & 4 deletions config/routes/publish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,14 @@

constraints(::Constraints::PartnershipFeature.new(:on)) do
get '/publish/organisations/:provider_code/:recruitment_cycle_year/accredited-providers', to: redirect('/publish/organisations/:provider_code/:recruitment_cycle_year/provider-partnerships')
resources :provider_partnerships, param: :accredited_provider_code, except: %i[show], path: 'provider-partnerships', controller: 'provider_partnerships' do
resources :accredited_partnerships, param: :accredited_provider_code, except: %i[show], path: 'provider-partnerships', controller: 'accredited_partnerships' do
member do
get :delete
delete :delete, to: 'provider_partnerships#destroy'
delete :delete, to: 'accredited_partnerships#destroy'
end

get '/check', on: :collection, to: 'provider_partnerships/checks#show'
put '/check', on: :collection, to: 'provider_partnerships/checks#update'
get '/check', on: :collection, to: 'accredited_partnerships/checks#show'
put '/check', on: :collection, to: 'accredited_partnerships/checks#update'
end
end

Expand Down

0 comments on commit 90d26ed

Please sign in to comment.