Created
December 17, 2017 11:04
-
-
Save hamzahjamad/ff9181d6fee6e0795a900a6a90e5836e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//fb-bot-tutorial/routes/web.php | |
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register web routes for your application. These | |
| routes are loaded by the RouteServiceProvider within a group which | |
| contains the "web" middleware group. Now create something great! | |
| | |
*/ | |
Route::get('/', function () { | |
return view('welcome'); | |
}); | |
//add this new endpoint | |
Route::get('/webhook', 'WebhookController@getWebhook'); | |
Route::post('/webhook', 'WebhookController@postWebhook'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment