25 lines
495 B
TypeScript
25 lines
495 B
TypeScript
import type { MockMethod } from 'vite-plugin-mock';
|
|
|
|
const apis: MockMethod[] = [
|
|
{
|
|
url: '/mock/getUserRoutes',
|
|
method: 'post',
|
|
response: (options: Service.MockOption): Service.MockServiceResult => {
|
|
const routeHomeName: string = 'dashboard_analysis';
|
|
|
|
const filterRoutes = null
|
|
|
|
return {
|
|
code: 200,
|
|
message: 'ok',
|
|
data: {
|
|
routes: filterRoutes,
|
|
home: routeHomeName
|
|
}
|
|
};
|
|
}
|
|
}
|
|
];
|
|
|
|
export default apis;
|