misc: added testing.http file
This commit is contained in:
@@ -5,3 +5,4 @@
|
|||||||
/mc-router.exe
|
/mc-router.exe
|
||||||
/mc-router
|
/mc-router
|
||||||
/dist/
|
/dist/
|
||||||
|
/*.private.env.json
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"local": {
|
||||||
|
"baseUrl": "http://localhost:8080",
|
||||||
|
"serverAddress": "localhost",
|
||||||
|
"backend": "mc"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
### Get routes
|
||||||
|
GET {{baseUrl}}/routes
|
||||||
|
Accept: application/json
|
||||||
|
|
||||||
|
### Create route
|
||||||
|
POST {{baseUrl}}/routes
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"serverAddress": "{{serverAddress}}",
|
||||||
|
"backend": "{{backend}}:25565"
|
||||||
|
}
|
||||||
|
|
||||||
|
### Delete route
|
||||||
|
DELETE {{baseUrl}}/routes/{{serverAddress}}
|
||||||
Reference in New Issue
Block a user