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
19 lines
566 B
Plaintext
19 lines
566 B
Plaintext
import { getRequestCollection } from '../../utilities/getRequestEntity.js';
|
|
import { headersWithCors } from '../../utilities/headersWithCors.js';
|
|
import { initOperation } from '../operations/init.js';
|
|
export const initHandler = async (req)=>{
|
|
const initialized = await initOperation({
|
|
collection: getRequestCollection(req).config.slug,
|
|
req
|
|
});
|
|
return Response.json({
|
|
initialized
|
|
}, {
|
|
headers: headersWithCors({
|
|
headers: new Headers(),
|
|
req
|
|
})
|
|
});
|
|
};
|
|
|
|
//# sourceMappingURL=init.js.map |