mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-19 14:31:46 +01:00
Remove trpc and use H3 instead
This commit is contained in:
3
src/server/api/categories.get.ts
Normal file
3
src/server/api/categories.get.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default defineEventHandler(async () => {
|
||||
return await usePrisma().category.findMany()
|
||||
})
|
||||
Reference in New Issue
Block a user