Skip to content

Commit

Permalink
fix: update API endpoints for app keys to apps in PortalAppsClient (#893
Browse files Browse the repository at this point in the history
)

Co-authored-by: Noggling <[email protected]>
  • Loading branch information
Noggling and Noggling authored Dec 12, 2024
1 parent 157f340 commit 47b3298
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/pr-893-2230942484.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

---
"fusion-project-portal": patch
---
update API endpoints for app keys to apps in PortalAppsClient
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class PortalAppsClient implements IPortalAppsClient {
this.#appKeysQuery = new Query<string[]>({
client: {
fn: async () => {
return await httpClient.json<string[]>(`/api/portals/${this.portalId}/appkeys`);
return await httpClient.json<string[]>(`/api/portals/${this.portalId}/apps`);
},
},
key: () => `app-keys-${this.portalId}`,
Expand All @@ -32,7 +32,7 @@ export class PortalAppsClient implements IPortalAppsClient {
client: {
fn: async (args) => {
return await httpClient.json<string[]>(
`/api/portals/${this.portalId}/contexts/${args.contextId}/appkeys`
`/api/portals/${this.portalId}/contexts/${args.contextId}/apps`
);
},
},
Expand Down

0 comments on commit 47b3298

Please sign in to comment.