You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
314 B
14 lines
314 B
import mockjs from 'mockjs';
|
|
import type { Request, Response } from 'express';
|
|
|
|
const getTags = (_: Request, res: Response) => {
|
|
return res.json({
|
|
data: mockjs.mock({
|
|
'list|100': [{ name: '@city', 'value|1-100': 150, 'type|0-2': 1 }],
|
|
}),
|
|
});
|
|
};
|
|
|
|
export default {
|
|
'GET /api/tags': getTags,
|
|
};
|
|
|