'use strict';
import { apiOkResponse } from '../../../meta/server/web/responses.js';
import { getTestData } from './test-data.js';
import { apiBadRequestError } from '../../../../fd-toolbox/server/web/errors.js';
import { metaQueryParams } from '../../../../fd-toolbox/constants/meta-query-params.js';
import { testParams } from './test-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x2ee4fa,_0x626abf)=>__defProp(_0x2ee4fa,'name',{'value':_0x626abf,'configurable':!![]});async function testDataGetRoute(_0x2456cf){const _0x1d8565=new URL(_0x2456cf['url']),_0x5e3a09=_0x1d8565['searchParams']['get'](testParams['key']);if(!_0x5e3a09)throw apiBadRequestError();const _0x4cceae=_0x1d8565['searchParams']['get'](metaQueryParams['userId']),_0x24ba64=await getTestData(_0x5e3a09,_0x4cceae);return apiOkResponse(_0x24ba64);}__name(testDataGetRoute,'testDataGetRoute');

export { testDataGetRoute };
