Skip to content

Commit 248ee1f

Browse files
authored
Feat/module app/person specific manifest (#2520)
* feat(module-app): call person/me/apps/key to get app manifest * chore: changeset
1 parent b48874b commit 248ee1f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/red-ducks-battle.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@equinor/fusion-framework-module-app': patch
3+
---
4+
5+
### Changes:
6+
- Updated the `AppClient` class to modify the query path in the `fn` method for fetching app manifests:
7+
- Changed the path from `/apps/${appKey}` to `/persons/me/apps/${appKey}`.

packages/modules/app/src/AppClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class AppClient implements IAppClient {
6868
this.#manifest = new Query<AppManifest, { appKey: string }>({
6969
client: {
7070
fn: ({ appKey }) => {
71-
return client.json(`/apps/${appKey}`, {
71+
return client.json(`/persons/me/apps/${appKey}`, {
7272
headers: {
7373
'Api-Version': '1.0',
7474
},

0 commit comments

Comments
 (0)