summaryrefslogtreecommitdiffstats
path: root/src/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index e6bca95..cc956e0 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -22,13 +22,14 @@ namespace mastodonpp
Connection::Connection(Instance &instance)
: _instance{instance}
, _baseuri{instance.get_baseuri()}
+ , _api{}
{}
answer_type Connection::get(const API::endpoint_type &endpoint)
{
return make_request(
http_method::GET,
- string(_baseuri).append(API{endpoint}.to_string_view()));
+ string(_baseuri).append(_api.endpoint_to_string_view(endpoint)));
}
answer_type Connection::get(const string_view &endpoint)