22 lines
501 B
TypeScript
22 lines
501 B
TypeScript
|
|
/*
|
||
|
|
* This file is part of the kernelstudio package.
|
||
|
|
*
|
||
|
|
* (c) 2014-2025 zlin <admin@kernelstudio.com>
|
||
|
|
*
|
||
|
|
* For the full copyright and license information, please view the LICENSE file
|
||
|
|
* that was distributed with this source code.
|
||
|
|
*/
|
||
|
|
import {MockMethod} from 'vite-plugin-mock';
|
||
|
|
import {createResponse} from './core';
|
||
|
|
|
||
|
|
export default [
|
||
|
|
{
|
||
|
|
url: '/api/samples',
|
||
|
|
method: 'get',
|
||
|
|
response: () => {
|
||
|
|
return createResponse( {
|
||
|
|
name: 'vben',
|
||
|
|
})
|
||
|
|
},
|
||
|
|
},
|
||
|
|
] as MockMethod[];
|