FEATURE: add quick actions to static page overview
This commit is contained in:
@@ -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.');
|
||||
});
|
||||
Reference in New Issue
Block a user