<?php

use App\Http\Controllers\Api\VarietyController;
use App\Http\Controllers\Api\VineyardRowController;
use Illuminate\Support\Facades\Route;

// API endpoints for vineyard rows and variation search (read-only, still API guard)
Route::middleware(['auth', 'role:winemaker'])->group(function () {
    Route::get('/variety-variations/search', [VarietyController::class, 'searchVariations'])->name('api.variety-variations.search');
    Route::get('/vineyard/rows', [VineyardRowController::class, 'index'])->name('api.vineyard.rows');
});
