GTARH_Fonctionnel_V1
This commit is contained in:
18
Backend/webhook-config.js
Normal file
18
Backend/webhook-config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
// Configuration des webhooks
|
||||
const WEBHOOKS = {
|
||||
COLLABORATEURS_URL: process.env.COLLABORATEURS_URL || 'http://localhost:3000',
|
||||
RH_URL: process.env.RH_URL || 'http://localhost:3001',
|
||||
SECRET_KEY: process.env.WEBHOOK_SECRET || 'secret-key-securise'
|
||||
};
|
||||
|
||||
// Types d'événements
|
||||
const EVENTS = {
|
||||
DEMANDE_VALIDATED: 'demande.validated',
|
||||
DEMANDE_CREATED: 'demande.created',
|
||||
DEMANDE_UPDATED: 'demande.updated',
|
||||
DEMANDE_CANCELLED: 'demande.cancelled',
|
||||
DEMANDE_DELETED: 'demande.deleted',
|
||||
COMPTEUR_UPDATED: 'compteur.updated'
|
||||
};
|
||||
|
||||
module.exports = { WEBHOOKS, EVENTS };
|
||||
Reference in New Issue
Block a user