Skip to content

Commit

Permalink
add missing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Oct 26, 2024
1 parent 4b5caa0 commit c89649d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/webpacker/components/RegistrationsV2/api/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import {
allRegistrationsUrl, bulkUpdateRegistrationUrl,
confirmedRegistrationsUrl, paymentTicketUrl,
singleRegistrationUrl, submitRegistrationUrl, updateRegistrationUrl,
wcaRegistrationUrl
wcaRegistrationUrl,
} from '../../../lib/requests/routes.js.erb';

/* eslint-disable import/prefer-default-export */
export const registrationRoutes = {
v2: {
confirmedRegistrationsUrl: (competitionId) => `${wcaRegistrationUrl}/api/v1/registrations/${competitionId}`,
allRegistrationsUrl: (competitionId) => `${wcaRegistrationUrl}/api/v1/registrations/${competitionId}/admin`,
singleRegistrationUrl: (competitionId, userId) => `${wcaRegistrationUrl}/api/v1/register?user_id=${userId}&competition_id=${competitionId}`
singleRegistrationUrl: (competitionId, userId) => `${wcaRegistrationUrl}/api/v1/register?user_id=${userId}&competition_id=${competitionId}`,
updateRegistrationUrl: `${wcaRegistrationUrl}/api/v1/register`,
bulkUpdateRegistrationUrl: `${wcaRegistrationUrl}/api/v1/bulk_update`,
submitRegistrationUrl: `${wcaRegistrationUrl}/api/v1/register`,
Expand All @@ -23,5 +24,5 @@ export const registrationRoutes = {
updateRegistrationUrl,
bulkUpdateRegistrationUrl,
paymentTicketUrl,
}
}
},
};

0 comments on commit c89649d

Please sign in to comment.