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

Avatar

Avatar

Benjamin_Reif-Caplan

Avatar

Benjamin_Reif-Caplan

Benjamin_Reif-Caplan

13-04-2020

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

SPA

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Benjamin_Reif-Caplan

Avatar

Benjamin_Reif-Caplan

Benjamin_Reif-Caplan

13-04-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 🙂

Answers (0)