diff options
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/connection.cpp b/src/connection.cpp index cc956e0..e6bca95 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -22,14 +22,13 @@ 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(endpoint))); + string(_baseuri).append(API{endpoint}.to_string_view())); } answer_type Connection::get(const string_view &endpoint) |