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

Added app from nuxt context to api_handler arguments #2

Merged
merged 2 commits into from
Jul 3, 2018

Conversation

nperez0111
Copy link
Contributor

This is useful because I can use context.$axios in accordance with nuxt-axios module instead of having to do an import of axios so that if anything is globally set to that instance I don't have to pass those onto the import of axios as well like with the case of authentication headers.

@ezypeeze
Copy link
Owner

Hey there, do we need the entire context object? The appobject should be enough (which is your root vue instance). Plugins will be at app.

What do you think?

@ezypeeze ezypeeze added the enhancement New feature or request label Jun 26, 2018
@nperez0111
Copy link
Contributor Author

The app object would be enough for me I just figured why not give access to the entire context if someone needed it.
But I’ll make an update with just app (it’ll clean up the code a bit too)

@nperez0111
Copy link
Contributor Author

Sorry forgot to push the change.

@nperez0111 nperez0111 changed the title Added nuxt context to api_handler arguments Added app from nuxt context to api_handler arguments Jul 2, 2018
@ezypeeze ezypeeze merged commit 56cc93f into ezypeeze:master Jul 3, 2018
@ezypeeze
Copy link
Owner

ezypeeze commented Jul 3, 2018

Merged! Thanks @nperez0111!

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

Successfully merging this pull request may close these issues.

2 participants