feat: Added get all users. closes #16
All checks were successful
Build and Deploy / Deploy Web (push) Successful in 1m2s
Build and Deploy / Deploy Discord Bot (push) Successful in 42s

This commit is contained in:
Xeovalyte 2023-06-05 09:34:22 +02:00
parent a0ea5ec191
commit b17771755d

View File

@ -0,0 +1,9 @@
export default defineEventHandler(async () => {
try {
return await UserModel.find()
} catch (e) {
console.error('Failed to get users', e)
throw createError({ statusCode: 500, statusMessage: 'Failed to get users' })
}
})