mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 10:39:28 +00:00
A route that displays an error. Seems quite useless, I know
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
use Artisan;
|
||||
use Carbon\Carbon;
|
||||
use Config;
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
use FireflyIII\Models\Tag;
|
||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface as ARI;
|
||||
use Input;
|
||||
@@ -10,6 +11,7 @@ use Preferences;
|
||||
use Session;
|
||||
use Steam;
|
||||
|
||||
|
||||
/**
|
||||
* Class HomeController
|
||||
*
|
||||
@@ -25,6 +27,11 @@ class HomeController extends Controller
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function displayError() {
|
||||
throw new FireflyException('A very simple test error.');
|
||||
}
|
||||
|
||||
|
||||
public function dateRange()
|
||||
{
|
||||
$start = new Carbon(Input::get('start'));
|
||||
|
@@ -22,6 +22,10 @@ Route::group(
|
||||
Route::post('/password/reset', 'Auth\PasswordController@reset');
|
||||
|
||||
|
||||
// display error:
|
||||
Route::get('/error', 'HomeController@displayError');
|
||||
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user