From 999ef668d153e49dc92be7e30faf251fc667aa84 Mon Sep 17 00:00:00 2001 From: Peter Grlica Date: Thu, 4 Mar 2021 09:06:01 +0100 Subject: [PATCH] Renamed social endpoints --- federation/rest.yaml | 4 ++-- federation/rest/handlers/syncData.go | 2 +- federation/rest/handlers/syncStructure.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/federation/rest.yaml b/federation/rest.yaml index 363c33c33..04b293b02 100644 --- a/federation/rest.yaml +++ b/federation/rest.yaml @@ -360,7 +360,7 @@ endpoints: - name: readExposedSocial method: GET title: List all exposed modules changes in activity streams format - path: "/social" + path: "/activity-stream" parameters: path: - type: uint64 @@ -458,7 +458,7 @@ endpoints: - name: readExposedSocial method: GET title: List all records per module in activitystreams format - path: "/{moduleID}/records/social/" + path: "/{moduleID}/records/activity-stream/" parameters: path: - type: uint64 diff --git a/federation/rest/handlers/syncData.go b/federation/rest/handlers/syncData.go index c34554c5a..59ece5b82 100644 --- a/federation/rest/handlers/syncData.go +++ b/federation/rest/handlers/syncData.go @@ -90,6 +90,6 @@ func (h SyncData) MountRoutes(r chi.Router, middlewares ...func(http.Handler) ht r.Use(middlewares...) r.Get("/nodes/{nodeID}/modules/exposed/records/", h.ReadExposedAll) r.Get("/nodes/{nodeID}/modules/{moduleID}/records/", h.ReadExposedInternal) - r.Get("/nodes/{nodeID}/modules/{moduleID}/records/social/", h.ReadExposedSocial) + r.Get("/nodes/{nodeID}/modules/{moduleID}/records/activity-stream/", h.ReadExposedSocial) }) } diff --git a/federation/rest/handlers/syncStructure.go b/federation/rest/handlers/syncStructure.go index bfcaad9ae..55292a357 100644 --- a/federation/rest/handlers/syncStructure.go +++ b/federation/rest/handlers/syncStructure.go @@ -71,6 +71,6 @@ func (h SyncStructure) MountRoutes(r chi.Router, middlewares ...func(http.Handle r.Group(func(r chi.Router) { r.Use(middlewares...) r.Get("/nodes/{nodeID}/modules/exposed/", h.ReadExposedInternal) - r.Get("/nodes/{nodeID}/modules/exposed/social", h.ReadExposedSocial) + r.Get("/nodes/{nodeID}/modules/exposed/activity-stream", h.ReadExposedSocial) }) }