backoffice first commit

This commit is contained in:
2026-07-17 11:34:15 +02:00
parent 761db06329
commit 1c40ef6601
159 changed files with 25830 additions and 7875 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
use App\Http\Controllers\Api\CarrelloController;
use Illuminate\Support\Facades\Route;
// Espone al configuratore l'URL corrente dell'app cliente (checkout), così il
// frontend non deve indovinare la porta su cui gira Vite (può cambiare se 5174 è occupata).
Route::get('config', fn () => response()->json([
'frontend_cliente_url' => config('preventivi.frontend_cliente_url'),
]));
Route::prefix('carrello')->group(function () {
Route::post('aggiungi', [CarrelloController::class, 'aggiungi']);
Route::get('{token}', [CarrelloController::class, 'mostra']);
Route::delete('{token}/item/{item}', [CarrelloController::class, 'rimuoviItem']);
Route::post('{token}/conferma', [CarrelloController::class, 'conferma']);
});