Skip to content

Commit

Permalink
fix(package): align package with new types
Browse files Browse the repository at this point in the history
  • Loading branch information
xutyxd committed Oct 1, 2024
1 parent aaeedd2 commit c15e4a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/package/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ export class PhotronAPIClient {
return this.client.GET('/folders');
},
get: async (uuid: IFolder['uuid']) => {
return this.client.GET('/folders/{uuid}', { params: { query: { uuid } } });
return this.client.GET('/folders/{uuid}', { params: { path: { uuid } } });
},
update: async (uuid: IFolder['uuid'], body: Partial<IFolder>) => {
return this.client.PATCH('/folders/{uuid}', { params: { query: { uuid }, body } });
return this.client.PATCH('/folders/{uuid}', { params: { path: { uuid }, body } });
},
delete: async (uuid: IFolder['uuid']) => {
return this.client.DELETE(`/folders/{uuid}`, { params: { query: { uuid } } });
return this.client.DELETE(`/folders/{uuid}`, { params: { path: { uuid } } });
}
}
}

0 comments on commit c15e4a5

Please sign in to comment.