Made home route point to /home; index (/) redirects to home route

This commit is contained in:
Ascendings 2015-08-30 14:30:18 -04:00
parent edfc595918
commit aec57d2972
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
$app->get('/', function() use($app) { $app->get('/home', function() use($app) {
$app->render('home.php'); $app->render('home.php');

7
app/routes/index.php Normal file
View File

@ -0,0 +1,7 @@
<?php
$app->get('/home', function() use($app) {
$app->response->redirect($app->urlFor('home'), '303');
})->name('index');