How do you customize the patch that gets requested by SPA Page Model Manager's `ModelManager.initialize()`? | Community
Skip to main content
April 13, 2020
Solved

How do you customize the patch that gets requested by SPA Page Model Manager's `ModelManager.initialize()`?

  • April 13, 2020
  • 1 reply
  • 692 views

I did see the apiHost option, but any guidance around this would be much appreciated!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Benjamin_Reif-Caplan

Looks like I found the answer. In case others are looking for this you can use something like this:

```

let modelClient = new ModelClient();
ModelManager.initialize({
path: [YOUR PATH HERE...],
modelClient
})

```

Note, you _dont_ want to include the host (really the entire origin) as part of that path though 🙂

1 reply

Benjamin_Reif-CaplanAuthorAccepted solution
April 13, 2020

Looks like I found the answer. In case others are looking for this you can use something like this:

```

let modelClient = new ModelClient();
ModelManager.initialize({
path: [YOUR PATH HERE...],
modelClient
})

```

Note, you _dont_ want to include the host (really the entire origin) as part of that path though 🙂