<?php

use App\Http\Controllers\SegmentConstants\CreateSegmentConstantController;
use App\Http\Controllers\SegmentConstants\FetchSegmentConstantController;
use App\Http\Controllers\SegmentConstants\UpdateSegmentConstantController;
use Illuminate\Support\Facades\Route;

// Route::group(['namespace' => 'StandardSegmentConstants'], function () {
//     Route::group(['middleware' => 'valid.token'], function () {
//         Route::group(['prefix' => 'standard-segment-constant'], function () {
//             Route::get('/list', [ListStandardSegmentConstantsController::class, 'list'])->name('standard_segment.update');
//             Route::put('/update/{id}', [UpdateStandardSegmentConstantController::class, 'update'])->name('standard_segment_constant.update');
//         });
//     });
// });


Route::group(['middleware' => 'valid.token'], function () {
    Route::group(['prefix' => 'segment-constant'], function () {
        Route::get('/{id}/show', [FetchSegmentConstantController::class, 'fetch'])->name('segment_constant.show');
        Route::post('/create', [CreateSegmentConstantController::class, 'create'])->name('segment_constant.create');
        Route::put('/update/{id}', [UpdateSegmentConstantController::class, 'update'])->name('segment_constant.update');
    });
});