mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-23 07:52:44 +01:00
Implementing Drizzle to add views and like for post
This commit is contained in:
3
server/api/posts/index.get.ts
Normal file
3
server/api/posts/index.get.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default defineEventHandler(() => {
|
||||
return useDB().query.posts.findMany()
|
||||
})
|
||||
Reference in New Issue
Block a user