Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
782 B
TypeScript
29 lines
782 B
TypeScript
export default eventHandler(async (event) => {
|
|
const userinfo = verifyAccessToken(event);
|
|
if (!userinfo) {
|
|
return unAuthorizedResponse(event);
|
|
}
|
|
const data = `
|
|
{
|
|
"code": 0,
|
|
"message": "success",
|
|
"data": [
|
|
{
|
|
"id": 123456789012345678901234567890123456789012345678901234567890,
|
|
"name": "John Doe",
|
|
"age": 30,
|
|
"email": "john-doe@demo.com"
|
|
},
|
|
{
|
|
"id": 987654321098765432109876543210987654321098765432109876543210,
|
|
"name": "Jane Smith",
|
|
"age": 25,
|
|
"email": "jane@demo.com"
|
|
}
|
|
]
|
|
}
|
|
`;
|
|
setHeader(event, 'Content-Type', 'application/json');
|
|
return data;
|
|
});
|