diff options
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 |