summaryrefslogtreecommitdiff
path: root/src/Controllers
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 /src/Controllers
parent6ed891fc0416e8025f929cf60a07b1020118b221 (diff)
Fix caching issue for '/' route
Diffstat (limited to 'src/Controllers')
-rw-r--r--src/Controllers/HomeController.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Controllers/HomeController.php b/src/Controllers/HomeController.php
new file mode 100644
index 00000000..809593ce
--- /dev/null
+++ b/src/Controllers/HomeController.php
@@ -0,0 +1,16 @@
+<?php
+
+namespace Engelsystem\Controllers;
+
+use Engelsystem\Http\Exceptions\HttpTemporaryRedirect;
+
+class HomeController extends BaseController
+{
+ /**
+ * @throws HttpTemporaryRedirect
+ */
+ public function index()
+ {
+ throw new HttpTemporaryRedirect(auth()->user() ? config('home_site') : 'login');
+ }
+}