first commit
This commit is contained in:
commit
c7fa91c8ce
34 files changed
+4631
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// Új webhook UUID generálás endpoint
|
||||
import { Router } from 'express';
|
||||
import { randomUUID } from 'crypto';
|
||||
|
||||
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) => {
|
||||
const uuid = randomUUID();
|
||||
res.json({ uuid });
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in new issue
Block a user