Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use with custom instances? #11

Closed
uhtred opened this issue Sep 15, 2016 · 1 comment
Closed

How to use with custom instances? #11

uhtred opened this issue Sep 15, 2016 · 1 comment

Comments

@uhtred
Copy link

uhtred commented Sep 15, 2016

instance = axios.create({ baseUrl: 'example.com' })

@mzabriskie
Copy link
Member

You can pass an instance to moxios.install(), it will use the default axios instance if none is provided.

let instance = axios.create({ baseUrl: 'example.com' })
moxios.install(instance)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants