How to Make a Request

api/v1/TextHub


const axios = require("axios");
const options = {
method: 'POST',
url: 'https://text-hub.vercel.app/api/v1/comparison',
data: {
text1: 'First text',
text2: 'Second text'
},
headers: {
'Authorization': 'YOUR_API_KEY',
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});