Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

enable https for administrator bundle

  • Loading branch information...
commit eda7f35483253178609eac9c9c8d42f8c28566d9 1 parent fbdee54
@ajb ajb authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 bundles/administrator/routes.php
View
9 bundles/administrator/routes.php
@@ -12,8 +12,6 @@
require __DIR__.'/viewComposers.php';
-
-
/**
* Routes
*/
@@ -22,15 +20,16 @@
'as' => 'admin_dashboard',
'uses' => 'administrator::admin@dashboard',
'before' => 'validate_admin|add_assets', //only needs to validate admin and add assets
+ 'https' => true
));
//The route group for all other requests needs to validate admin, model, and add assets
-Route::group(array('before' => 'validate_admin|validate_model|add_assets'), function()
+Route::group(array('before' => 'validate_admin|validate_model|add_assets', 'https' => true), function()
{
//Model Index
Route::get('(:bundle)/(:any)', array(
'as' => 'admin_index',
- 'uses' => 'administrator::admin@index'
+ 'uses' => 'administrator::admin@index',
));
//Get Item
@@ -72,4 +71,4 @@
'uses' => 'administrator::admin@results'
));
});
-});
+});
Please sign in to comment.
Something went wrong with that request. Please try again.