diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-11-21 12:17:28 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2019-06-12 10:21:20 +0200 |
commit | 2e51fbff9d8472a0e98af39aff52d30f0b67706b (patch) | |
tree | a41eaf8fa3296fb2892b97fde1074edc566be4c3 /config | |
parent | e948091066e4893b1b823fc80db1c1ebba174b53 (diff) |
Added / route with redirects
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes.php b/config/routes.php index b9e3646a..6f61ec71 100644 --- a/config/routes.php +++ b/config/routes.php @@ -1,10 +1,14 @@ <?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('/credits', 'CreditsController@index'); // Stats |