diff --git a/src/routes.php b/src/routes.php index c9cca8e..d208708 100644 --- a/src/routes.php +++ b/src/routes.php @@ -1,6 +1,6 @@ ['auth', 'web']], function ($router) { +Route::group(['middleware' => ['web', 'auth']], function ($router) { $router->get('/settings/api/webhooks', 'Mpociot\CaptainHook\Http\WebhookController@all'); $router->post('/settings/api/webhook', 'Mpociot\CaptainHook\Http\WebhookController@store'); $router->put('/settings/api/webhook/{webhook_id}', 'Mpociot\CaptainHook\Http\WebhookController@update');