fix(core): Fix routing for waiting webhooks and forms (#14470)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-04-08 12:17:01 +02:00
committed by GitHub
parent 6c73d7ed81
commit b5d5b57118
2 changed files with 56 additions and 24 deletions

View File

@@ -193,13 +193,13 @@ export abstract class AbstractServer {
// Register a handler for waiting forms
this.app.all(
`/${this.endpointFormWaiting}/:path/{:suffix}`,
`/${this.endpointFormWaiting}/:path{/:suffix}`,
createWebhookHandlerFor(Container.get(WaitingForms)),
);
// Register a handler for waiting webhooks
this.app.all(
`/${this.endpointWebhookWaiting}/:path/{:suffix}`,
`/${this.endpointWebhookWaiting}/:path{/:suffix}`,
createWebhookHandlerFor(Container.get(WaitingWebhooks)),
);
}