FEATURE #1370: add form for creating new static page
This commit is contained in:
@@ -15,10 +15,20 @@ Route::group([
|
||||
'prefix' => 'admin/pages',
|
||||
'namespace' => 'Modules\StaticPages\Http\Controllers\Admin'
|
||||
], function () {
|
||||
|
||||
// list of all static pages
|
||||
Route::get('overview', 'StaticPageOverview@getOverview')
|
||||
->name('staticpage.overview');
|
||||
|
||||
// form for creating new static page
|
||||
Route::get('new', 'CreateNewStaticPage@getNew')
|
||||
->name('staticpage.new');
|
||||
|
||||
// form for editing existing static page
|
||||
Route::get('edit/{id}', 'EditStaticPage@getEdit')
|
||||
->name('staticpage.edit');
|
||||
|
||||
// post method for creating new static page
|
||||
Route::post('new', 'CreateNewStaticPage@getNew')
|
||||
->name('staticpage.newPost');
|
||||
});
|
||||
Reference in New Issue
Block a user