From aec57d297278eab234ce89d59820a1897dde815c Mon Sep 17 00:00:00 2001 From: Ascendings Date: Sun, 30 Aug 2015 14:30:18 -0400 Subject: [PATCH] Made home route point to /home; index (/) redirects to home route --- app/routes/home.php | 2 +- app/routes/index.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 app/routes/index.php diff --git a/app/routes/home.php b/app/routes/home.php index e9aea07..cae12e1 100755 --- a/app/routes/home.php +++ b/app/routes/home.php @@ -1,6 +1,6 @@ get('/', function() use($app) { +$app->get('/home', function() use($app) { $app->render('home.php'); diff --git a/app/routes/index.php b/app/routes/index.php new file mode 100644 index 0000000..77c991f --- /dev/null +++ b/app/routes/index.php @@ -0,0 +1,7 @@ +get('/home', function() use($app) { + + $app->response->redirect($app->urlFor('home'), '303'); + +})->name('index');