ca7d16da16
- Add fallback env parsing directly from .env file in config/trello.php - Fixes issue where cached config prevents env() from reading .env values - Add artisan trello:test command to diagnose Trello configuration - Test command checks API credentials, board/list IDs, and connectivity - Test successfully creates and moves a test Trello card
17 lines
605 B
PHP
17 lines
605 B
PHP
<?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');
|