@friggframework/core 2.0.0--canary.460.1f9acc3.0 → 2.0.0--canary.464.f9d3fc0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,7 +20,7 @@ for (const IntegrationClass of integrationClasses) {
|
|
|
20
20
|
console.log(`\n│ Configuring webhook routes for ${IntegrationClass.Definition.name}:`);
|
|
21
21
|
|
|
22
22
|
// General webhook route (no integration ID)
|
|
23
|
-
router.post(
|
|
23
|
+
router.post(basePath, async (req, res, next) => {
|
|
24
24
|
try {
|
|
25
25
|
const integrationInstance = new IntegrationClass();
|
|
26
26
|
const dispatcher = new IntegrationEventDispatcher(integrationInstance);
|
|
@@ -37,7 +37,7 @@ for (const IntegrationClass of integrationClasses) {
|
|
|
37
37
|
console.log(`│ POST ${basePath}`);
|
|
38
38
|
|
|
39
39
|
// Integration-specific webhook route (with integration ID)
|
|
40
|
-
router.post(
|
|
40
|
+
router.post(`${basePath}/:integrationId`, async (req, res, next) => {
|
|
41
41
|
try {
|
|
42
42
|
const integrationInstance = new IntegrationClass();
|
|
43
43
|
const dispatcher = new IntegrationEventDispatcher(integrationInstance);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/core",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.
|
|
4
|
+
"version": "2.0.0--canary.464.f9d3fc0.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@hapi/boom": "^10.0.1",
|
|
7
7
|
"@prisma/client": "^6.16.3",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"uuid": "^9.0.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@friggframework/eslint-config": "2.0.0--canary.
|
|
27
|
-
"@friggframework/prettier-config": "2.0.0--canary.
|
|
28
|
-
"@friggframework/test": "2.0.0--canary.
|
|
26
|
+
"@friggframework/eslint-config": "2.0.0--canary.464.f9d3fc0.0",
|
|
27
|
+
"@friggframework/prettier-config": "2.0.0--canary.464.f9d3fc0.0",
|
|
28
|
+
"@friggframework/test": "2.0.0--canary.464.f9d3fc0.0",
|
|
29
29
|
"@types/lodash": "4.17.15",
|
|
30
30
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
31
31
|
"chai": "^4.3.6",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "f9d3fc0e7c7135c87a6b6b1befc7d7912966f86a"
|
|
68
68
|
}
|