Files
klz-cables.com/.pnpm-store/v10/files/0f/235430d4cb2fc9216ce81036492a87f35ca87883dc795488c40c2aa035bd0a6a6129316f08a83db5b42bc0733fb638074e509b87564c32131802155b0ac470
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

31 lines
993 B
Plaintext

import { status as httpStatus } from 'http-status';
import { getRequestCollection } from '../../utilities/getRequestEntity.js';
import { headersWithCors } from '../../utilities/headersWithCors.js';
import { parseParams } from '../../utilities/parseParams/index.js';
import { findVersionsOperation } from '../operations/findVersions.js';
export const findVersionsHandler = async (req)=>{
const collection = getRequestCollection(req);
const { depth, limit, page, pagination, populate, select, sort, trash, where } = parseParams(req.query);
const result = await findVersionsOperation({
collection,
depth,
limit,
page,
pagination,
populate,
req,
select,
sort,
trash,
where
});
return Response.json(result, {
headers: headersWithCors({
headers: new Headers(),
req
}),
status: httpStatus.OK
});
};
//# sourceMappingURL=findVersions.js.map