tachybase_todo/packages/app/mock/resources/users.ts

11 lines
207 B
TypeScript
Raw Normal View History

2021-05-23 08:38:08 +08: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'),
},
});
}