init
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { defineEventHandler, readBody } from 'h3'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const body = await readBody(event)
|
||||
console.log(body)
|
||||
return {
|
||||
code: 200,
|
||||
msg: '创建成功',
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user