text: import { promiseData } from './utils';
  
  export const global = async context => {
    const { store } = context;
    store.commit('setMiddlewareGlobal', await promiseData('global'));
  };
  
  export const route = async context => {
    const { store } = context;
    store.commit('setMiddlewareRoute', await promiseData('route'));
  };
  
  export const routeNested = async context => {
    const { store } = context;
    store.commit('setMiddlewareRouteNested', await promiseData('nested'));
  };
  