Add baseurl to uri if endpoint is string_view.
This commit is contained in:
parent
ec41063488
commit
bf82525c5e
|
@ -42,7 +42,7 @@ answer_type Connection::get(const endpoint_variant &endpoint,
|
||||||
return string(_baseuri)
|
return string(_baseuri)
|
||||||
+= API{std::get<API::endpoint_type>(endpoint)}.to_string_view();
|
+= API{std::get<API::endpoint_type>(endpoint)}.to_string_view();
|
||||||
}
|
}
|
||||||
return string(std::get<string_view>(endpoint));
|
return string(_baseuri) += std::get<string_view>(endpoint);
|
||||||
}()};
|
}()};
|
||||||
|
|
||||||
return make_request(http_method::GET, uri, parameters);
|
return make_request(http_method::GET, uri, parameters);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user