import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { RouteRecordRaw } from 'vue-router';

// 获取路由
export function getRouters(id: string): AxiosPromise<RouteRecordRaw[]> {
  return request({
    url: '/system/menu/getRouters/' + id,
    method: 'get'
  });
}
