mirror of
https://github.com/RomySaputraSihananda/ares.git
synced 2026-08-15 11:48:07 +00:00
14 lines
328 B
TypeScript
14 lines
328 B
TypeScript
import { NextResponse } from "next/server";
|
|||
|
|
import { getAccount } from "@/lib/mt5";
|
||
|
|
|
||
|
|
export const dynamic = "force-dynamic";
|
||
|
|
|
||
|
|
export async function GET() {
|
||
|
|
try {
|
||
|
|
const data = await getAccount();
|
||
|
|
return NextResponse.json(data);
|
||
|
|
} catch (e) {
|
||
|
|
return NextResponse.json({ error: String(e) }, { status: 502 });
|
||
|
|
}
|
||
|
|
}
|