mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-06 08:10:27 +01:00
Merge pull request #1273 from cachethq/setup-middleware
Don't use filters, use middleware. Closes #1269
This commit is contained in:
commit
27f85d941b
@ -40,16 +40,6 @@ class SetupController extends Controller
|
||||
'redis' => 'Redis',
|
||||
];
|
||||
|
||||
/**
|
||||
* Create a new setup controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->beforeFilter('csrf', ['only' => ['postCachet']]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the setup page.
|
||||
*
|
||||
|
@ -27,7 +27,7 @@ class SetupRoutes
|
||||
*/
|
||||
public function map(Registrar $router)
|
||||
{
|
||||
$router->group(['middleware' => 'app.isSetup'], function ($router) {
|
||||
$router->group(['middleware' => ['app.isSetup', 'csrf']], function ($router) {
|
||||
$router->controller('setup', 'SetupController');
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user