Made home route point to /home; index (/) redirects to home route
This commit is contained in:
parent
edfc595918
commit
aec57d2972
@ -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
7
app/routes/index.php
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$app->get('/home', function() use($app) {
|
||||||
|
|
||||||
|
$app->response->redirect($app->urlFor('home'), '303');
|
||||||
|
|
||||||
|
})->name('index');
|
Loading…
Reference in New Issue
Block a user