File size: 317 Bytes
610afda
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const axios = require("axios");

const apiUrl = `http://de-fsn-4.halex.gg:25287/api`;

const postData = {
  prompt: "Wassup my homie"
};

axios.post(apiUrl, postData)
  .then(response => {
    console.log("Response from API:", response.data);
  })
  .catch(error => {
    console.error("Error:", error.message);
  });