new routes for v3

This commit is contained in:
2024-07-14 10:50:34 +00:00
parent 5afc3c916b
commit e482a700f4
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Models\Harim;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Divarkeshi extends Model
{
use HasFactory;
protected $table = 'harim_divarkeshi';
protected $guarded = ['id'];
}

23
routes/v3.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
use App\Http\Controllers\V3\Harim\DivarkeshiController;
Route::prefix('harim')->name('harim')->group(function () {
Route::prefix('divarkeshi')->name('divarkeshi')->controller(DivarkeshiController::class)->group(function () {
Route::get('/', 'index')->name('index');
Route::get('/{divarkeshi}', 'details')->name('details');
Route::post('/store', 'store')->name('store');
// Route::get('/report/map', 'V3\Dashboard\ContractController@getAllDataToMap')->name('V3.contract.report.map');
// Route::get('/{contract}', 'V3\Dashboard\ContractController@detail')->name('V3.contract.detail');
});
Route::prefix('rah_dastresi')->name('rah_dastresi')->group(function () {
// Route::get('/store', 'V3\Dashboard\ContractController@unserialize')->name('store');
// Route::get('/report/map', 'V3\Dashboard\ContractController@getAllDataToMap')->name('V3.contract.report.map');
// Route::get('/{contract}', 'V3\Dashboard\ContractController@detail')->name('V3.contract.detail');
});
Route::prefix('tasisat_zirbana')->group(function () {
// Route::get('/{contract}/unserialize', 'V3\Dashboard\ContractController@unserialize')->name('V3.contract.unserialize');
// Route::get('/report/map', 'V3\Dashboard\ContractController@getAllDataToMap')->name('V3.contract.report.map');
// Route::get('/{contract}', 'V3\Dashboard\ContractController@detail')->name('V3.contract.detail');
});
});