mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 13:44:58 -06:00
A new controller that can be used in combination with SendGrid.
This commit is contained in:
parent
8101dc37b1
commit
68e073fbff
@ -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.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
21
app/Http/Controllers/WebhookController.php
Normal file
21
app/Http/Controllers/WebhookController.php
Normal 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);
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -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(
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user