0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-16 21:34:58 +00:00

Added timeout and debugging statuses to webhooks

- Added a user-configurable timeout option to webhooks.
- Added webhook fields for last-call/error datetime, in addition to last
  error string, which are shown on  webhook edit view.

Related to 
This commit is contained in:
Dan Brown 2022-01-03 19:42:48 +00:00
parent 6e18620a0a
commit 00eedafbfd
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
13 changed files with 205 additions and 80 deletions
app/Http/Controllers

View file

@ -46,6 +46,7 @@ class WebhookController extends Controller
'endpoint' => ['required', 'url', 'max:500'],
'events' => ['required', 'array'],
'active' => ['required'],
'timeout' => ['required', 'integer', 'min:1', 'max:600'],
]);
$webhook = new Webhook($validated);
@ -81,6 +82,7 @@ class WebhookController extends Controller
'endpoint' => ['required', 'url', 'max:500'],
'events' => ['required', 'array'],
'active' => ['required'],
'timeout' => ['required', 'integer', 'min:1', 'max:600'],
]);
/** @var Webhook $webhook */