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 #3122
This commit is contained in:
parent
6e18620a0a
commit
00eedafbfd
13 changed files with 205 additions and 80 deletions
app/Http/Controllers
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue