summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/request.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/request.cpp b/src/request.cpp
index cf2eb39..1e91504 100644
--- a/src/request.cpp
+++ b/src/request.cpp
@@ -23,17 +23,17 @@ Request::Request(Instance &instance)
: _instance{instance}
{}
-answer_type Request::get(API::endpoint_type endpoint) const
+answer_type Request::get(API::endpoint_type endpoint)
{
answer_type answer;
answer.body = API{endpoint}.to_string();
return answer;
}
-answer_type Request::get(string endpoint) const
+answer_type Request::get(string endpoint)
{
answer_type answer;
- answer.body = endpoint;
+ answer.body = make_request(http_method::GET, "https://ip.tastytea.de/");
return answer;
}