Skip to content

Commit

Permalink
Feat/module app/person specific manifest (#2520)
Browse files Browse the repository at this point in the history
* feat(module-app): call person/me/apps/key to get app manifest

* chore: changeset
  • Loading branch information
eikeland authored Nov 7, 2024
1 parent b48874b commit 248ee1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/red-ducks-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@equinor/fusion-framework-module-app': patch
---

### Changes:
- Updated the `AppClient` class to modify the query path in the `fn` method for fetching app manifests:
- Changed the path from `/apps/${appKey}` to `/persons/me/apps/${appKey}`.
2 changes: 1 addition & 1 deletion packages/modules/app/src/AppClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class AppClient implements IAppClient {
this.#manifest = new Query<AppManifest, { appKey: string }>({
client: {
fn: ({ appKey }) => {
return client.json(`/apps/${appKey}`, {
return client.json(`/persons/me/apps/${appKey}`, {
headers: {
'Api-Version': '1.0',
},
Expand Down

0 comments on commit 248ee1f

Please sign in to comment.