Initial SeConectai briefing system
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { getExportacaoDadosCliente } from "@/lib/account-service";
|
||||
|
||||
export async function GET() {
|
||||
const data = await getExportacaoDadosCliente();
|
||||
|
||||
return new NextResponse(JSON.stringify(data, null, 2), {
|
||||
headers: {
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Content-Disposition": "attachment; filename=\"meus-dados-briefing.json\"",
|
||||
"X-Content-Type-Options": "nosniff"
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user