I've been trying to access my injected method named api -- inside the asyncData / fetch methods of nuxt. Whatever I do does not seem to work. I cannot use this.$api, or $api. I cannot use this.api or api... and also cannot put asyncData({ $api }) without $ or without {}... You get the idea, I've tried basically all variations of trying to access the created instance. How can I get access to the axios instance inside of the fetch/asyncData methods? Thanks!
I've been trying to access my injected method named api -- inside the asyncData / fetch methods of nuxt. Whatever I do does not seem to work. I cannot use this.$api, or $api. I cannot use this.api or api... and also cannot put asyncData({ $api }) without $ or without {}... You get the idea, I've tried basically all variations of trying to access the created instance. How can I get access to the axios instance inside of the fetch/asyncData methods? Thanks!