chore: /api/billing/plans fiyat kimliği + webhook tanılaması

This commit is contained in:
2026-08-29 12:36:23 +03:00
parent 8bb3d6ee48
commit 4b4f8a6951
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -750,7 +750,7 @@ const server = http.createServer(async (req, res) => {
// --- Abonelik / ödeme ---
if (url.pathname === '/api/billing/plans') {
return json(res, 200, { configured: billingConfigured(), plans: planCatalog() });
return json(res, 200, { configured: billingConfigured(), webhookHazir: webhookConfigured(), plans: planCatalog() });
}
if (url.pathname === '/api/billing/checkout' && req.method === 'POST') {
const user = userFromAuthHeader(req.headers['authorization']);