public static function configRoutes($groupConfig)
    {
		$groups = '';
    	$i = 0;
    	foreach($groupConfig['register_groups'] as $key => $value) {
    		$i++;

    		if($i == 1){
    			$groups .= $value;
    		} else {
    			$groups .= '|' . $value;
    		}
    	}

       	Route::group([
       		'middleware' => 'groups:' . $groups
       	], function ($object) {

			Route::post('/config/{group}/show', '\Niku\Cms\Http\Controllers\Config\ShowConfigController@init')->name('show');
			Route::post('/config/{group}/edit', '\Niku\Cms\Http\Controllers\Config\EditConfigController@init')->name('edit');

		});
    }