fix: Fixes API routes.

This commit is contained in:
greysoh 2024-04-27 16:53:17 -04:00
parent 1a4ba1921f
commit 6ff28de463
No known key found for this signature in database
GPG key ID: FE0F173B8FC01571
5 changed files with 11 additions and 21 deletions

View file

@ -12,10 +12,10 @@ post {
body:json { body:json {
{ {
"token": "535c80825631c04b9add7a8682e06799d62ba57b5089b557f5bab2183fc9926b187b3b8d96da8ef16c67ec80f2917cf81bc21337f47728534f58ac9c4ed5f3fe", "token": "914abf2223f84375eed884671bfaefd7755d378af496b345f322214e75b51ed4465f11e26c944914c9b4fcc35c53250325fbc6530853ddfed8f72976d6fc5",
"name": "PortCopier Route", "name": "SSH Route",
"description": "This is a test route for portcopier.", "description": "This is a test route for SSH connectivity",
"backend": "PortCopier", "backend": "ssh",
"connectionDetails": { "connectionDetails": {
"funny": true "funny": true
} }

View file

@ -12,10 +12,10 @@ post {
body:json { body:json {
{ {
"token": "535c80825631c04b9add7a8682e06799d62ba57b5089b557f5bab2183fc9926b187b3b8d96da8ef16c67ec80f2917cf81bc21337f47728534f58ac9c4ed5f3fe", "token": "914abf2223f84375eed884671bfaefd7755d378af496b345f322214e75b51ed4465f11e26c944914c9b4fcc35c53250325fbc6530853ddfed8f72976d6fc5",
"name": "Test Route", "name": "Test Route",
"description": "This is a test route for portcopier.", "description": "This is a test route for SSH",
"protocol": "tcp", "protocol": "tcp",
"sourceIP": "127.0.0.1", "sourceIP": "127.0.0.1",

View file

@ -5,7 +5,7 @@ meta {
} }
post { post {
url: http://127.0.0.1:3000/api/v1/forward/start url: http://127.0.0.1:3000/api/v1/forward/connections
body: json body: json
auth: none auth: none
} }

View file

@ -5,7 +5,7 @@ meta {
} }
post { post {
url: http://127.0.0.1:3000/api/v1/forward/create url: http://127.0.0.1:3000/api/v1/forward/start
body: json body: json
auth: none auth: none
} }
@ -13,16 +13,6 @@ post {
body:json { body:json {
{ {
"token": "914abf2223f84375eed884671bfaefd7755d378af496b345f322214e75b51ed4465f11e26c944914c9b4fcc35c53250325fbc6530853ddfed8f72976d6fc5", "token": "914abf2223f84375eed884671bfaefd7755d378af496b345f322214e75b51ed4465f11e26c944914c9b4fcc35c53250325fbc6530853ddfed8f72976d6fc5",
"name": "Test Route", "id": "1"
"description": "This is a test route for SSH",
"protocol": "tcp",
"sourceIP": "127.0.0.1",
"sourcePort": "8000",
"destinationPort": "9000",
"providerID": "1"
} }
} }

View file

@ -5,7 +5,7 @@ meta {
} }
post { post {
url: http://127.0.0.1:3000/api/v1/forward/start url: http://127.0.0.1:3000/api/v1/forward/stop
body: json body: json
auth: none auth: none
} }