docs: Convert code examples to JS

This commit is contained in:
Faruk AYDIN
2024-01-15 13:13:48 +01:00
parent 9ece9461dc
commit 8fcb7840de
3 changed files with 10 additions and 10 deletions

View File

@@ -68,7 +68,7 @@ export default defineAction({
{
label: 'Image ID',
key: 'imageId',
type: 'string' as const,
type: 'string',
required: true,
description: 'The ID of the cat image you want to mark as favorite.',
variables: true,
@@ -104,7 +104,7 @@ export default defineAction({
const imageId = $.step.parameters.imageId;
const headers = {
'x-api-key': $.auth.data.apiKey as string,
'x-api-key': $.auth.data.apiKey,
};
const response = await $.http.post(