Skip to content

Commit

Permalink
refactor: change endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Sep 20, 2024
1 parent ea7a3d1 commit 849de72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function CampaignsDetailsPage() {
try {
if (isPublishMode) {
console.log('publishing...');
const endpoint = `/publish/${campaign.properties.id}`;
const endpoint = `/${campaign.properties.id}/publish`;
const response = await API.fetchWithArgs(endpoint, {}, 'PUT');
console.log('Campaign published.', response);
location.reload();
Expand Down

0 comments on commit 849de72

Please sign in to comment.