You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
277 B
TypeScript

1 month ago
// server/api/test.get.ts
import { defineEventHandler } from 'h3'
export default defineEventHandler((event) => {
return {
message: 'API路由工作正常',
timestamp: new Date().toISOString(),
method: event.method,
path: event.path
}
})