-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.php
38 lines (31 loc) · 1.03 KB
/
routes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
$app->get('/', function () use ($app) {
app()->abort(404);
});
$app->group(['prefix' => 'webhooks'], function ($app) {
/*
|--------------------------------------------------------------------------
| Define The Webhook Routes
|--------------------------------------------------------------------------
|
| Here, we are defining what webhook routes we want and what middleware is
| associated with them. You should un-comment the routes you want to use
| use and also comment out the routes you do not wish to use.
|
*/
// Github
$app->post('github', [
'middleware' => 'github',
'uses' => 'App\Http\Controllers\WebhooksController@push',
]);
// Bitbucket
$app->post('bitbucket', [
'middleware' => 'bitbucket',
'uses' => 'App\Http\Controllers\WebhooksController@push',
]);
// // Gitlab
// $app->post('gitlab', [
// 'middleware' => 'gitlab',
// 'uses' => 'App\Http\Controllers\WebhooksController@push',
// ]);
});