28 lines
1.2 KiB
PHP
28 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Content\Http\Controllers\ContentCategoryController;
|
|
use Modules\Content\Http\Controllers\ContentController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::group(['middleware' => ['web', 'auth', 'permission'], 'prefix' => 'admin/'], function () {
|
|
|
|
Route::post('content/schedule', [ContentController::class, 'schedule'])->name('content.schedule');
|
|
Route::get('content-draft', [ContentController::class, 'draft'])->name('content.draft');
|
|
Route::post('content/update-status/{id}', [ContentController::class, 'updateStatus'])->name('content.updateStatus');
|
|
Route::get('content/partials/edit/{id}', [ContentController::class, 'getContentModal'])->name('content.partials.edit');
|
|
Route::resource('content', ContentController::class)->names('content');
|
|
|
|
Route::resource('content-category', ContentCategoryController::class)->names('contentCategory');
|
|
});
|