Skip to content

Instantly share code, notes, and snippets.

@hamzahjamad
Created December 17, 2017 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamzahjamad/ff9181d6fee6e0795a900a6a90e5836e to your computer and use it in GitHub Desktop.
Save hamzahjamad/ff9181d6fee6e0795a900a6a90e5836e to your computer and use it in GitHub Desktop.
<?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