api code global jain
This commit is contained in:
24
routes/api/v1/chaturmas.php
Normal file
24
routes/api/v1/chaturmas.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\Api\V1\Access\ChaturmasController;
|
||||
use App\Http\Controllers\Api\V1\Access\ChaturmasReviewController;
|
||||
|
||||
Route::group(['middleware' => 'auth:sanctum', 'as' => 'api.chaturmas.'], function () {
|
||||
Route::GET('chaturmas', [ChaturmasController::class, 'index'])->name('index');
|
||||
Route::POST('chaturmas', [ChaturmasController::class, 'store'])->name('store');
|
||||
Route::POST('chaturmas/{chaturma}', [ChaturmasController::class, 'update'])->name('update');
|
||||
Route::GET('chaturmas/{chaturma}', [ChaturmasController::class, 'show'])->name('show');
|
||||
Route::DELETE('chaturmas/{chaturma}', [ChaturmasController::class, 'destroy'])->name('destroy');
|
||||
Route::GET('chaturmas-year', [ChaturmasController::class, 'getChaturmasYears'])->name('chaturmas-year');
|
||||
Route::GET('hundred-chaturmas-years', [ChaturmasController::class, 'getHundredChaturmasYears'])->name('hundred-chaturmas-years');
|
||||
});
|
||||
|
||||
// Chaturmas Review
|
||||
Route::group(['middleware' => 'auth:sanctum', 'as' => 'api.chaturmas.review.'], function () {
|
||||
// Route::apiResource('chaturmas.review', ChaturmasController::class);
|
||||
Route::GET('chaturmas/{chaturmas}/review', [ChaturmasReviewController::class, 'index'])->name('index');
|
||||
Route::POST('chaturmas/{chaturmas}/review', [ChaturmasReviewController::class, 'store'])->name('store');
|
||||
Route::POST('chaturmas/{chaturmas}/review/{review}', [ChaturmasReviewController::class, 'update'])->name('update');
|
||||
Route::GET('chaturmas/{chaturmas}/review/{review}', [ChaturmasReviewController::class, 'show'])->name('show');
|
||||
Route::DELETE('chaturmas/{chaturmas}/review/{review}', [ChaturmasReviewController::class, 'destroy'])->name('destroy');
|
||||
});
|
||||
Reference in New Issue
Block a user