Skip to content

Commit

Permalink
resolve error of 404 by correcting the url. thanks Andy Gallagher to …
Browse files Browse the repository at this point in the history
…spot the problem.
  • Loading branch information
Divs-B committed Jan 21, 2025
1 parent 8144827 commit f19ccf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ POST /editions-api/collections cont
GET /editions-api/collections/:collectionId controllers.EditionsController.getCollection(collectionId)
PUT /editions-api/collections/:collectionId controllers.EditionsController.updateCollection(collectionId)
PATCH /editions-api/collections/:collectionId/name controllers.EditionsController.renameCollection(collectionId)
PATCH /editions-api/collections/:collectionId/targeted_regions controllers.EditionsController.markCollectionForUSOnly(collectionId)
PATCH /editions-api/collections/:collectionId/targeted-regions controllers.EditionsController.markCollectionForUSOnly(collectionId)
GET /editions-api/collections/:collectionId/prefill controllers.EditionsController.getPrefillForCollection(collectionId)

POST /editions-api/fronts/:frontId/collections/:collectionId/feastCollectionToContainer/:collectionCardId controllers.EditionsController.feastCollectionToContainer(frontId, collectionId, collectionCardId)
2 changes: 1 addition & 1 deletion fronts-client/src/services/editionsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export const markCollectionForUSOnly =
async (collection: EditionsCollection): Promise<void> => {
try {
const response = await pandaFetch(
`editions-api/collections/${id}/targeted_regions`,
`/editions-api/collections/${id}/targeted-regions`,
{
method: 'PATCH',
headers: {
Expand Down

0 comments on commit f19ccf8

Please sign in to comment.