Files
klz-cables.com/.pnpm-store/v10/files/eb/7cc54f2b62c8ab89107b73790257f856557caede681905989e2cd6d2be05dd34479a448d9e16cd2f699d0ab4ce8107c244b361fdd2e016ff5f875f571a7fac
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

27 lines
721 B
Plaintext

import { status as httpStatus } from 'http-status';
import { headersWithCors } from '../../utilities/headersWithCors.js';
import { accessOperation } from '../operations/access.js';
export const accessHandler = async (req)=>{
const headers = headersWithCors({
headers: new Headers(),
req
});
try {
const results = await accessOperation({
req
});
return Response.json(results, {
headers,
status: httpStatus.OK
});
} catch (e) {
return Response.json({
error: e
}, {
headers,
status: httpStatus.INTERNAL_SERVER_ERROR
});
}
};
//# sourceMappingURL=access.js.map