18 lines
402 B
JavaScript
18 lines
402 B
JavaScript
const { v4: uuidv4 } = require('uuid');
|
|
|
|
function Call() {
|
|
let uuid = uuidv4()
|
|
|
|
console.log(uuid)
|
|
|
|
fetch("http://localhost:50000/v1/wsconnections/0446328d-9f16-4865-88bb-8ee022f47712/"+uuid,
|
|
{ method: "POST",
|
|
headers: {
|
|
"X-MS-API": "askmdaskdmasdklmasdlkm12km3alkmd"
|
|
},
|
|
})
|
|
.then((res) => res.text())
|
|
.then((data) => console.log(data))
|
|
}
|
|
|
|
Call() |