FEATURE: add quick actions to static page overview

This commit is contained in:
Michal Kváček
2016-01-28 13:38:30 +01:00
parent 0f4ad90cd8
commit 1b2d7db8f3
5 changed files with 133 additions and 15 deletions
+17 -1
View File
@@ -8,7 +8,6 @@ Route::group([
Route::get('/{url}', 'StaticPagesController@index');
});
// routes group for admin area
Route::group([
'middleware' => ['web', 'auth'],
@@ -31,4 +30,21 @@ Route::group([
// post method for creating new static page
Route::post('new', 'CreateNewStaticPage@postNew')
->name('staticpage.newPost');
// routes for quick actions
// change status of page (protected, public or draft)
Route::get('status/{id}/{status}', 'EditStaticPage@changeStatus')
->name('staticpage.changeStatus');
// delete page
Route::get('delete/{id}', 'EditStaticPage@deletePage')
->name('staticpage.delete');
// display change history of given page
// Route::get('history/{id}', 'StaticPageHistory@getHistory')->name('staticpage.history');
// Route::get('', '')->name('staticpage.');
});