Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
Hetzner-Master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Hetzner-Master
Commits
32d39693
Commit
32d39693
authored
Dec 21, 2019
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
76b7dd44
Pipeline
#25
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app.js
app.js
+1
-1
test.js
test.js
+2
-2
No files found.
app.js
View file @
32d39693
...
...
@@ -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
()
...
...
test.js
View file @
32d39693
...
...
@@ -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
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment