summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLuca <Luca@hackerspace-bamberg.de>2019-06-13 15:18:47 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-06-14 04:15:20 +0200
commit9232513831501e8a0cb4f14299cd8f85afe7bc7f (patch)
tree4df0b09bbd4b3448db12b98b7c55e3e6d0a2a0c1 /config
parent6ed891fc0416e8025f929cf60a07b1020118b221 (diff)
Fix caching issue for '/' route
Diffstat (limited to 'config')
-rw-r--r--config/routes.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/config/routes.php b/config/routes.php
index 6cc0ce8b..e999d026 100644
--- a/config/routes.php
+++ b/config/routes.php
@@ -1,14 +1,11 @@
<?php
-use Engelsystem\Http\Exceptions\HttpTemporaryRedirect;
use FastRoute\RouteCollector;
/** @var RouteCollector $route */
// Pages
-$route->get('/', function () {
- throw new HttpTemporaryRedirect(auth()->user() ? config('home_site') : 'login');
-});
+$route->get('/', 'HomeController@index');
$route->get('/credits', 'CreditsController@index');
// Authentication