Skip to content

Commit

Permalink
fixing webpacker issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dunkOnIT committed Oct 23, 2024
1 parent 8a7daf1 commit 7ffef23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions app/webpacker/lib/requests/routes.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -248,17 +248,17 @@ export const eligibleVotersUrl = `<%= CGI.unescape(Rails.application.routes.url_

export const leaderSeniorVotersUrl = `<%= CGI.unescape(Rails.application.routes.url_helpers.leader_senior_voters_path) %>`;

<!-- export const confirmedRegistrationsUrl = (competitionId) => `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_path(competition_id: "${competitionId}")) %>`; -->
export const confirmedRegistrationsUrl = (competitionId) => `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_path(competition_id: "${competitionId}")) %>`;

<!-- export const allRegistrationsUrl = (competitionId) => `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_list_admin_path(competition_id: "${competitionId}")) %>`; -->
export const allRegistrationsUrl = (competitionId) => `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_list_admin_path(competition_id: "${competitionId}")) %>`;

<!-- export const singleRegistrationUrl = (competitionId, userId) => `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_register_path(competition_id: "${competitionId}", user_id: "${userId}")) %>`; -->
export const singleRegistrationUrl = (competitionId, userId) => `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_register_path(competition_id: "${competitionId}", user_id: "${userId}")) %>`;

<!-- export const submitRegistrationUrl = `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_register_path) %>`; -->
export const submitRegistrationUrl = `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_register_path) %>`;

<!-- export const updateRegistrationUrl = `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_register_path) %>`; -->
export const updateRegistrationUrl = `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_register_path) %>`;

<!-- export const bulkUpdateRegistrationUrl = `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_bulk_update_path) %>`; -->
export const bulkUpdateRegistrationUrl = `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_bulk_update_path) %>`;

<!-- export const paymentTicketUrl = (competitionId, donationIso) => `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_payment_ticket_path(competition_id: "${competitionId}", donation_iso: "${donationIso}")) %>`; -->
export const paymentTicketUrl = (competitionId, donationIso) => `<%= CGI.unescape(Rails.application.routes.url_helpers.api_v1_registrations_payment_ticket_path(competition_id: "${competitionId}", donation_iso: "${donationIso}")) %>`;

10 changes: 5 additions & 5 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,12 @@
namespace :v1 do
namespace :registrations do
get '/register', to: 'registrations#show'
post '/register', to: 'registrations#create'#, as: :create_registration
patch '/register', to: 'registrations#update'#, as: :update_registration
patch '/bulk_update', to: 'registrations#bulk_update'#, as: :bulk_update_registrations
get '/:competition_id', to: 'registrations#list'#, as: :list_registrations
post '/register', to: 'registrations#create'
patch '/register', to: 'registrations#update'
patch '/bulk_update', to: 'registrations#bulk_update'
get '/:competition_id', to: 'registrations#list'
get '/:competition_id/admin', to: 'registrations#list_admin', as: :list_admin
get '/:competition_id/payment', to: 'registrations#payment_ticket'#, as: :payment_ticket
get '/:competition_id/payment', to: 'registrations#payment_ticket', as: :payment_ticket
end
end
end
Expand Down

0 comments on commit 7ffef23

Please sign in to comment.