Skip to content

Commit

Permalink
bugfix: request paths need 'rest' and capital V
Browse files Browse the repository at this point in the history
  • Loading branch information
tvhees committed Nov 27, 2023
1 parent 2961fdd commit 19720ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class ServerlessMagento implements ServerlessPlugin {

const serviceName = this.service.service;

await this.axiosInstance.put(`/v1/service/registrations`, {
await this.axiosInstance.put(`/rest/V1/service/registrations`, {
app_name: serviceName,
display_name: displayName,
description: description || this.getServiceDescription(),
Expand All @@ -130,7 +130,7 @@ class ServerlessMagento implements ServerlessPlugin {
*/
private async deregisterService() {
await this.axiosInstance.delete(
`/v1/service/registrations/${this.service.service}`,
`/rest/V1/service/registrations/${this.service.service}`,
);

this.log.success(
Expand Down

0 comments on commit 19720ef

Please sign in to comment.