-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e73e821
commit 4111526
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// import { db } from "@vercel/postgres"; | ||
|
||
// const client = await db.connect(); | ||
|
||
// async function listInvoices() { | ||
// const data = await client.sql` | ||
// SELECT invoices.amount, customers.name | ||
// FROM invoices | ||
// JOIN customers ON invoices.customer_id = customers.id | ||
// WHERE invoices.amount = 666; | ||
// `; | ||
|
||
// return data.rows; | ||
// } | ||
|
||
export async function GET() { | ||
return Response.json({ | ||
message: | ||
"Uncomment this file and remove this line. You can delete this file when you are finished.", | ||
}); | ||
// try { | ||
// return Response.json(await listInvoices()); | ||
// } catch (error) { | ||
// return Response.json({ error }, { status: 500 }); | ||
// } | ||
} |