chore: /api/billing/plans fiyat kimliği + webhook tanılaması
This commit is contained in:
+1
-1
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user