This commit is contained in:
ervin committed 2026-07-07 19:49:39 +02:00
1 parent 5cc0d52bb3
commit 66cd208b61
4 files changed
+74 -11

No files matched your search

+3 -1
View File
@@ -1,11 +1,13 @@
// Új webhook UUID generálás endpoint
import { Router } from 'express';
import { randomUUID } from 'crypto';
import { createLimiter } from '../middleware/rateLimiter.js';
const router = Router();
// POST /api/create - új UUID generálás, amit a kliens a webhook URL-ként használ
router.post('/api/create', (req, res) => {
// createLimiter: IP-nként korlátozza a létrehozást robotok tömeges hívása ellen
router.post('/api/create', createLimiter, (req, res) => {
const uuid = randomUUID();
res.json({ uuid });
});