firstcommit
This commit is contained in:
0
Modules/Estimate/routes/.gitkeep
Normal file
0
Modules/Estimate/routes/.gitkeep
Normal file
19
Modules/Estimate/routes/api.php
Normal file
19
Modules/Estimate/routes/api.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\Estimate\Http\Controllers\EstimateController;
|
||||
|
||||
/*
|
||||
*--------------------------------------------------------------------------
|
||||
* 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('estimate', EstimateController::class)->names('estimate');
|
||||
});
|
21
Modules/Estimate/routes/web.php
Normal file
21
Modules/Estimate/routes/web.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\Estimate\Http\Controllers\EstimateController;
|
||||
use Modules\Estimate\Http\Controllers\EstimateDetailController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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([], function () {
|
||||
Route::post('change-status', [EstimateController::class,'changeStatus'])->name('estimate.changeStatus');
|
||||
Route::resource('estimate', EstimateController::class)->names('estimate');
|
||||
});
|
Reference in New Issue
Block a user