export default {
async fetch(request, env, ctx) {
try {
const lables = ['stuff', 'bla', 'box'];
const text = 'blablablalballb!';
const result = await env.WORKER_TEXT_LABLE_MATCH.textLableMatch(lables, text);
return new Response(JSON.stringify(result));
} catch (error) {
return new Response("error" + error, { status: 500 });
}
},
};
export default {
async fetch(request, env, ctx) {
try {
const lables = ['stuff', 'bla', 'box'];
const text = 'blablablalballb!';
const result = await env.WORKER_TEXT_LABLE_MATCH.textLableMatch(lables, text);
return new Response(JSON.stringify(result));
} catch (error) {
return new Response("error" + error, { status: 500 });
}
},
};