Files
2026-11-11 09:00:17 +02:00

12 lines
623 B
PHP

<?php
use App\Http\Controllers\Api\V1\SgcInvoiceIngressController;
use App\Http\Middleware\AuthenticateSgcInvoice;
use Illuminate\Support\Facades\Route;
// Intentionally mount only invoice intake. Legacy payments/analytics are not exposed.
Route::post('v1/integration/sgc/invoices', SgcInvoiceIngressController::class)
->middleware(AuthenticateSgcInvoice::class)->name('integration.sgc.invoices');
Route::get('v1/integration/sgc/invoices/orders/{order}', [SgcInvoiceIngressController::class, 'context'])
->whereNumber('order')->middleware(AuthenticateSgcInvoice::class)->name('integration.sgc.invoices.context');