Files
core/modules/Blog/Article/Http/routes.php
T

28 lines
960 B
PHP

<?php
Route::group([
'prefix' => LaravelLocalization::setLocale(),
'middleware' => ['localeSessionRedirect', 'localizationRedirect'],
'namespace' => 'Modules\Blog\Article\Http\Controllers\Admin'
], function () {
Route::group([
'middleware' => ['web', 'auth', 'adminMenu'],
'prefix' => 'admin/comments',
], function () {
Route::get('/', 'CommentsOverview@getOverview')
->name('comments.overview');
Route::get('/delete/{id}', 'EditComment@delete')
->name('comments.delete');
Route::get('/approve/{id}', 'EditComment@approve')
->name('comments.approve');
});
// public routes
Route::group(['middleware' => ['web']], function () {
Route::post('comments/new/{id}', 'CreateNewComment@postNew')
->name('comments.new');
});
});