<?php

namespace App\Http\Controllers;

use Fivable\Buildable\Controllers\BuildableSettingController as BaseBuildableSettingController;

class BuildableSettingController extends BaseBuildableSettingController
{

//    /**
//     * Get all BuildableSettings
//     * @param Request $request
//     * @return JsonResponse
//     */
//    public function index(Request $request) : JsonResponse
//    {
//        $type = $request->type ?? /*all*/NULL;
//
//        $this->authorizeForUser($this->user(), 'viewIndex', BuildableSetting::class, $type);
//
//        $settings = BuildableSetting::indexFor($type);
//
//        return response()->json([
//            'settings' => $settings,
//        ]);
//    }

//    /**
//     * Update a specific BuildableSetting
//     * @param  Request  $request
//     * @param  BuildableSetting  $buildableSetting
//     * @return JsonResponse
//     */
//    public function update(Request $request, BuildableSetting $buildableSetting) : JsonResponse
//    {
//        $this->authorizeForUser($this->user(), 'update', $buildableSetting);
//
//        $buildableSetting->update($request->all());
//
//        return response()->json([
//            'updated_setting' => $buildableSetting->fresh(),
//        ]);
//    }
}
