File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
dashboard/starter-example/app/query Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ // import { db } from "@vercel/postgres";
2+
3+ // const client = await db.connect();
4+
5+ // async function listInvoices() {
6+ // const data = await client.sql`
7+ // SELECT invoices.amount, customers.name
8+ // FROM invoices
9+ // JOIN customers ON invoices.customer_id = customers.id
10+ // WHERE invoices.amount = 666;
11+ // `;
12+
13+ // return data.rows;
14+ // }
15+
16+ export async function GET ( ) {
17+ return Response . json ( {
18+ message :
19+ 'Uncomment this file and remove this line. You can delete this file when you are finished.' ,
20+ } ) ;
21+ // try {
22+ // return Response.json(await listInvoices());
23+ // } catch (error) {
24+ // return Response.json({ error }, { status: 500 });
25+ // }
26+ }
You can’t perform that action at this time.
0 commit comments