3
0

Renamed social endpoints

This commit is contained in:
Peter Grlica 2021-03-04 09:06:01 +01:00
parent 9450a3ad66
commit 999ef668d1
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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)
})
}

View File

@ -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)
})
}