first change

This commit is contained in:
2025-07-27 17:40:56 +05:45
commit f8b9a6725b
3152 changed files with 229528 additions and 0 deletions

View File

View 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');
});

View 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');
});