You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/resources/js/Global/mixins/api.js

13 lines
333 B

import axiosApi from '@Global/utils/api/factory/axios/axiosApi'
import apolloApi from '@Global/utils/api/factory/axios/axiosApi'
import apiHandler from '@Global/utils/api/apiHandler'
export const api = (url) => {
apiHandler.request(new url['type']+'Api'(url));
}
export default {
methods: {
$_api: api(url)
},
}