<?php

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@list')->name('standard_segment.update');
//             Route::put('/update/{id}', 'UpdateStandardSegmentConstantController@update')->name('standard_segment_constant.update');
//         });
//     });
// });


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