diff --git a/.gitignore b/.gitignore index 5bca125..fc19cc8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ /*.iml /mc-router.exe /mc-router -/dist/ \ No newline at end of file +/dist/ +/*.private.env.json diff --git a/http-client.env.json b/http-client.env.json new file mode 100644 index 0000000..7f912ae --- /dev/null +++ b/http-client.env.json @@ -0,0 +1,7 @@ +{ + "local": { + "baseUrl": "http://localhost:8080", + "serverAddress": "localhost", + "backend": "mc" + } +} diff --git a/testing.http b/testing.http new file mode 100644 index 0000000..4001190 --- /dev/null +++ b/testing.http @@ -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}}