import { getReleaseAssetResponse } from './server.js';
export async function GET(_request, { params }) {
    const resolvedParams = await params;
    const releaseId = resolvedParams.releaseId || '';
    const assetPath = (resolvedParams.path || []).join('/');
    if (!releaseId || !assetPath) {
        return new Response('asset not found', { status: 404 });
    }
    try {
        return await getReleaseAssetResponse(releaseId, assetPath);
    }
    catch {
        return new Response('asset not found', { status: 404 });
    }
}
