change structure for webservice

This commit is contained in:
2025-09-27 15:31:21 +03:30
parent 971036e48f
commit ed922a1eaa
3 changed files with 24 additions and 10 deletions

View File

@@ -73,6 +73,12 @@ class RouteServiceProvider extends ServiceProvider
->middleware(['web', 'auth', 'confirmUser'])
->namespace($this->namespace)
->group(base_path('routes/v3.php'));
Route::prefix('webservice')
->name('webservice.')
->namespace($this->namespace)
->group(base_path('routes/webservices.php'));
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)

View File

@@ -10,7 +10,6 @@ use App\Http\Controllers\V3\Dashboard\Azmayesh\AzmayeshSampleController;
use App\Http\Controllers\V3\Dashboard\Azmayesh\AzmayeshTypeController;
use App\Http\Controllers\V3\Dashboard\Harim\GeneralManagerController;
use App\Http\Controllers\V3\Dashboard\Harim\HarimOfficeController;
use App\Http\Controllers\V3\Dashboard\Harim\PanjareVahedController;
use App\Http\Controllers\V3\Dashboard\Harim\ProvinceOfficeController;
use App\Http\Controllers\V3\Dashboard\Harim\TechnicalDeputyController;
use App\Http\Controllers\V3\Dashboard\ItemsManagementController;
@@ -568,15 +567,6 @@ Route::prefix('harim')
Route::post('/confirm_guarantee_letter_need/{harim}', 'confirmGuaranteeLetterNeed')->name('confirmGuaranteeLetterNeed');
Route::get('/{harim}', 'show')->name('show');
});
Route::prefix('panjare_vahed')
->name('panjarevahed.')
->controller(PanjarevahedController::class)
->group(function () {
Route::post('/receive_new_request', 'receiveNewRequest')->name('receiveNewRequest');
Route::post('/receive_access_road','getAccessRoad')->name('getAccessRoad');
Route::post('/get_status_request','getRejectRequest')->name('getRejectRequest');
Route::post('/get_final_polygons','getFinalPolygons')->name('getFinalPolygons');
});
});
Route::prefix('user_management')

18
routes/webservices.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\V3\Dashboard\Harim\PanjareVahedController;
Route::prefix('harim')
->name('harim.')
->group(function () {
Route::prefix('panjare_vahed')
->name('panjarevahed.')
->controller(PanjarevahedController::class)
->group(function () {
Route::post('/receive_new_request', 'receiveNewRequest')->name('receiveNewRequest');
Route::post('/receive_access_road','getAccessRoad')->name('getAccessRoad');
Route::post('/get_status_request','getRejectRequest')->name('getRejectRequest');
Route::post('/get_final_polygons','getFinalPolygons')->name('getFinalPolygons');
});
});