Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Commit

Permalink
enable https for administrator bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
ajb committed Dec 12, 2012
1 parent fbdee54 commit eda7f35
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bundles/administrator/routes.php
Expand Up @@ -12,8 +12,6 @@
require __DIR__.'/viewComposers.php';




/**
* Routes
*/
Expand All @@ -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
Expand Down Expand Up @@ -72,4 +71,4 @@
'uses' => 'administrator::admin@results'
));
});
});
});

0 comments on commit eda7f35

Please sign in to comment.