mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
A route that displays an error. Seems quite useless, I know
This commit is contained in:
parent
df45298c1f
commit
8b1fe26c84
@ -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');
|
||||
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user