Commit 32d39693 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 76b7dd44
Pipeline #25 failed with stages
......@@ -35,7 +35,7 @@ app.get('/add/:num/', (req, res) => {
})
app.get('/add/', (req, res) => {
app.get('/del/', (req, res) => {
// console.log(req.params.acc)
res.send('Done')
het.removeAllFloatingIps()
......
......@@ -15,7 +15,7 @@ const cryptLib = require('@skavinvarnan/cryptlib');
const key = "6*sN_rZxHD4!X$=T";
let Hetzner = require('./Hetzner')
let het
tesT()
postFloatingIps(['127.0.0.2','127.0.0.3'])
async function tesT()
{
await init()
......@@ -46,7 +46,7 @@ function postFloatingIps(data) {
var options = {
method: 'POST',
url: 'http://127.0.0.1:3000/addFloatingIp',
url: 'http://admin.fcfglobal.co:3000/addFloatingIp',
headers: {'content-type': 'application/x-www-form-urlencoded'},
body: 'data=' + Buffer.from(data).toString('base64')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment