mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 22:57:38 +00:00
20 lines
385 B
TypeScript
20 lines
385 B
TypeScript
|
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'),
|
||
|
},
|
||
|
});
|
||
|
}
|