mirror of
https://github.com/ArthurDanjou/spanish-learner.git
synced 2026-01-24 17:00:32 +01:00
Working
This commit is contained in:
4
server/api/verb.get.ts
Normal file
4
server/api/verb.get.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export default defineEventHandler(async () => {
|
||||
const verbs = await useDB().query.verbs.findMany()
|
||||
return verbs[Math.floor(Math.random() * verbs.length)]
|
||||
})
|
||||
Reference in New Issue
Block a user