Skip to content

Commit

Permalink
Ajuste no Eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Sep 24, 2024
1 parent 8be45a3 commit 938e0d0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend/src/components/CodeSnippetGenerator/codeSnippets.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable no-useless-escape */
const codeSnippets = {
HTTP: (number, body, userId, queueId, whatsappId, token) => `POST ${process.env.REACT_APP_BACKEND_URL}/api/messages/send HTTP/1.1
HTTP: (number, body, userId, queueId, whatsappId, token) => `POST ${process.env.REACT_APP_BACKEND_URL}/api/messages/send HTTP/1.1
User-Agent: vscode-restclient
Authorization: Bearer ${token}
Content-Type: application/json
Expand All @@ -13,7 +14,7 @@ Content-Length: ${85 + body.length}
"queueId": "${queueId}",
"whatsappId": "${whatsappId}"
}`,
JavaScript_JQuery: (number, body, userId, queueId, whatsappId, token) => `const settings = {
JavaScript_JQuery: (number, body, userId, queueId, whatsappId, token) => `const settings = {
"async": true,
"crossDomain": true,
"url": "${process.env.REACT_APP_BACKEND_URL}/api/messages/send}",
Expand All @@ -31,7 +32,7 @@ $.ajax(settings).done(function (response) {
console.log(response);
});
`,
JavaScript_fetch: (number, body, userId, queueId, whatsappId, token) => `
JavaScript_fetch: (number, body, userId, queueId, whatsappId, token) => `
fetch("${process.env.REACT_APP_BACKEND_URL}/api/messages/send", {
"method": "POST",
"headers": {
Expand All @@ -54,7 +55,7 @@ $.ajax(settings).done(function (response) {
console.error(err);
});
`,
NODEjs_Request: (number, body, userId, queueId, whatsappId, token) => `
NODEjs_Request: (number, body, userId, queueId, whatsappId, token) => `
const request = require('request');
const options = {
method: 'POST',
Expand All @@ -79,7 +80,7 @@ $.ajax(settings).done(function (response) {
console.log('Response:', body);
});`,
PHP_cURL: (number, body, userId, queueId, whatsappId, token) => `
PHP_cURL: (number, body, userId, queueId, whatsappId, token) => `
<?php
$curl = curl_init();
Expand Down

0 comments on commit 938e0d0

Please sign in to comment.