<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\OrderController;
use App\Http\Controllers\TrelloWebhookController;
use App\Http\Controllers\CourierWebhookController;

// Existing Yoco webhook
Route::post('/webhook', [OrderController::class, 'yocoWebhook'])->name('yoco-webhook');

// Trello webhook
Route::match(['post', 'head', 'options'], '/webhooks/trello', [TrelloWebhookController::class, 'handle'])->name('trello-webhook');

// Courier webhook
Route::post('/webhooks/courier', [CourierWebhookController::class, 'handle'])->name('courier-webhook');
