chore: playground example
This commit is contained in:
8
playground/server/api/users/index.get.ts
Normal file
8
playground/server/api/users/index.get.ts
Normal file
@ -0,0 +1,8 @@
|
||||
export default defineEventHandler(async () => {
|
||||
try {
|
||||
return await UserSchema.find({})
|
||||
}
|
||||
catch (error) {
|
||||
return error
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user