<?php

namespace App\Http\Controllers;

use App\ColourMapRepository;
use App\Http\Requests\SetColourMapRequest;
use App\Http\Resources\ColourMapResource;

class ColourMapController extends Controller
{
    public function index(): ColourMapResource
    {
        return new ColourMapResource([]);
    }

    public function update(SetColourMapRequest $request, ColourMapRepository $repository)
    {
        $repository->update($request->input('colours', []));
        return new ColourMapResource([]);
    }
}
