diff --git a/http-requests/calculate-result.http b/http-requests/calculate-result.http index 829082e..2609338 100644 --- a/http-requests/calculate-result.http +++ b/http-requests/calculate-result.http @@ -1,4 +1,4 @@ -POST http://localhost:12000/wahlrecht/v1/calculate +POST {{backend}}/wahlrecht/v1/calculate Content-Type: application/json { diff --git a/http-requests/get-elections.http b/http-requests/get-elections.http new file mode 100644 index 0000000..8246367 --- /dev/null +++ b/http-requests/get-elections.http @@ -0,0 +1,2 @@ +GET {{backend}}/wahlrecht/v1/elections +Content-Type: application/json diff --git a/http-requests/http-client.env.json b/http-requests/http-client.env.json new file mode 100644 index 0000000..cc88e0c --- /dev/null +++ b/http-requests/http-client.env.json @@ -0,0 +1,8 @@ +{ + "dev": { + "backend": "http://localhost:12000" + }, + "prod" : { + "backend": "https://api.2martens.de" + } +} \ No newline at end of file