good forst commit

This commit is contained in:
2026-06-09 02:02:40 +05:30
parent 801c1d7121
commit 249d759e6a
215 changed files with 15425 additions and 1240 deletions
+20
View File
@@ -0,0 +1,20 @@
import { getApiBaseUrl, getToken, jsonResponse } from '../../../_lib/api';
export const dynamic = 'force-dynamic';
export async function POST(req: Request): Promise<Response> {
const body = await req.json().catch(() => ({}));
const token = await getToken();
const res = await fetch(`${getApiBaseUrl()}/admin/bot/initiate`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
...(token ? { Authorization: `Bearer ${token}` } : {}),
},
body: JSON.stringify(body),
cache: 'no-store',
});
const payload = await res.json();
return jsonResponse(payload, res.status);
}