mirror of
https://github.com/ershisan99/www.git
synced 2025-12-17 12:34:17 +00:00
add releases endpoint
This commit is contained in:
8
src/app/api/releases/route.ts
Normal file
8
src/app/api/releases/route.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { db } from '@/server/db'
|
||||
import { releases } from '@/server/db/schema'
|
||||
|
||||
export async function GET() {
|
||||
const res = await db.select().from(releases)
|
||||
|
||||
return Response.json(res)
|
||||
}
|
||||
Reference in New Issue
Block a user