summaryrefslogtreecommitdiffstats
path: root/src/api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.cpp')
-rw-r--r--src/api.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/api.cpp b/src/api.cpp
index 98a1d7f..fd7eede 100644
--- a/src/api.cpp
+++ b/src/api.cpp
@@ -19,8 +19,11 @@
namespace mastodonpp
{
-API::API()
- : _endpoint_map
+API::API(const endpoint_type &endpoint)
+ : _endpoint{endpoint}
+{}
+
+const map<API::endpoint_type,string_view> API::_endpoint_map
{
{v1::apps, "/api/v1/apps"},
{v1::apps_verify_credentials, "/api/v1/apps/verify/credentials"},
@@ -238,7 +241,6 @@ API::API()
"/api/pleroma/pleroma/notification_settings"},
{pleroma::pleroma_healthcheck, "/api/pleroma/pleroma/healthcheck"},
{pleroma::pleroma_change_email, "/api/pleroma/pleroma/change_email"},
-}
-{}
+};
} // namespace mastodonpp