nocobase/mock/resources/users.ts

20 lines
385 B
TypeScript
Raw Normal View History

2021-05-23 00:38:08 +00:00
import Mock from 'mockjs';
export async function check(req: any, res: any) {
res.json({
data: {
username: `username - ${Mock.mock('@string')}`,
token: Mock.mock('@string'),
},
});
}
export async function get(req: any, res: any) {
res.json({
data: {
username: `username - ${Mock.mock('@string')}`,
token: Mock.mock('@string'),
},
});
}