A new controller that can be used in combination with SendGrid.

This commit is contained in:
James Cole 2015-07-22 17:50:02 +02:00
parent 8101dc37b1
commit 68e073fbff
3 changed files with 24 additions and 0 deletions

View File

@ -42,6 +42,8 @@ abstract class Controller extends BaseController
View::share('monthFormat', $this->monthFormat);
View::share('monthAndDayFormat', $this->monthAndDayFormat);
View::share('language', $lang);
// the user is bouncing email.
}
}
}

View File

@ -0,0 +1,21 @@
<?php
namespace FireflyIII\Http\Controllers;
use Log;
/**
* Class WebhookController
*
* @package FireflyIII\Http\Controllers
*/
class WebhookController extends Controller
{
public function sendgrid()
{
var_dump($_POST);
Log::debug($_POST);
}
}

View File

@ -158,6 +158,7 @@ Route::bind(
* Auth\AuthController
*/
Route::get('/register', ['uses' => 'Auth\AuthController@getRegister', 'as' => 'register']);
Route::post ('/hook/sendgrid', ['uses' => 'WebhookController@sendgrid']);
Route::controllers(
[