<?php

use App\Http\Controllers\Api\V1\AppVersionController;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| App Version Routes (앱 버전 관리)
|--------------------------------------------------------------------------
| 인앱 업데이트용 API (Bearer 토큰 불필요, API Key만 필요)
*/

Route::prefix('app')->group(function () {
    Route::get('/version', [AppVersionController::class, 'latestVersion']);
    Route::get('/download/{id}', [AppVersionController::class, 'download']);
});
