<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\ApiController;

/*
|--------------------------------------------------------------------------
| REST API Routes for MotoSolution Bangladesh
|--------------------------------------------------------------------------
*/

Route::prefix('v1')->group(function () {
    // Inventory
    Route::get('/vehicles', [ApiController::class, 'getVehicles']);
    Route::get('/vehicles/{id}', [ApiController::class, 'getVehicle']);

    // Live Japan Auctions
    Route::get('/auctions', [ApiController::class, 'getAuctions']);
    Route::get('/auctions/{id}', [ApiController::class, 'getAuction']);

    // Landed Cost Calculation
    Route::post('/calculator/calculate', [ApiController::class, 'calculate']);

    // Import Order Tracking
    Route::get('/orders/track/{orderNumber}', [ApiController::class, 'trackOrder']);
});
