firstcommit

This commit is contained in:
2025-08-17 16:23:14 +05:45
commit 76bf4c0a18
2648 changed files with 362795 additions and 0 deletions

View File

View File

@@ -0,0 +1,19 @@
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| 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')->name('api.')->group(function () {
Route::get('gallery', fn (Request $request) => $request->user())->name('gallery');
});

View File

@@ -0,0 +1,39 @@
<?php
use Illuminate\Support\Facades\Route;
use Modules\Gallery\app\Http\Controllers\GalleryController;
/*
|--------------------------------------------------------------------------
| 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(
[
'prefix' => 'apanel',
'middleware' => ['auth'],
'as' => 'cms.',
],
function () {
Route::group(
[
'prefix' => 'cms',
'as' => 'galleries.',
'controller' => 'GalleryController',
],
function () {
Route::get('galleries', 'index')->name('index');
Route::get('galleries/create', 'create')->name('create');
Route::post('galleries/store', 'store')->name('store');
Route::get('galleries/{uuid}/edit', 'edit')->name('edit');
Route::put('galleries/{uuid}/update', 'update')->name('update');
Route::delete('galleries/{uuid}/delete', 'destroy')->name('delete');
}
);
}
);