api-gateway.js 392 B

1234567891011
  1. import { boot } from 'quasar/wrappers'
  2. import { APIGateway } from 'src/api/APIGateway'
  3. // "async" is optional;
  4. // more info on params: https://v2.quasar.dev/quasar-cli/boot-files
  5. export default boot(async ({ app, router, store }) => {
  6. app.config.globalProperties.$apiGateway = APIGateway
  7. app.$apiGateway = APIGateway
  8. router.$apiGateway = APIGateway
  9. store.$apiGateway = APIGateway
  10. })