feat(api): implement links routes
This commit is contained in:
5
server/api/links/index.get.ts
Normal file
5
server/api/links/index.get.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { db } from "#server/db";
|
||||
|
||||
export default defineEventHandler(async () => {
|
||||
return db.query.links.findMany();
|
||||
});
|
||||
Reference in New Issue
Block a user