first change
This commit is contained in:
0
Modules/Content/routes/.gitkeep
Normal file
0
Modules/Content/routes/.gitkeep
Normal file
19
Modules/Content/routes/api.php
Normal file
19
Modules/Content/routes/api.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\Content\Http\Controllers\ContentController;
|
||||
|
||||
/*
|
||||
*--------------------------------------------------------------------------
|
||||
* API Routes
|
||||
*--------------------------------------------------------------------------
|
||||
*
|
||||
* Here is where you can register API routes for your application. These
|
||||
* routes are loaded by the RouteServiceProvider within a group which
|
||||
* is assigned the "api" middleware group. Enjoy building your API!
|
||||
*
|
||||
*/
|
||||
|
||||
Route::middleware(['auth:sanctum'])->prefix('v1')->group(function () {
|
||||
Route::apiResource('content', ContentController::class)->names('content');
|
||||
});
|
27
Modules/Content/routes/web.php
Normal file
27
Modules/Content/routes/web.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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');
|
||||
});
|
Reference in New Issue
Block a user