From cef9924d9a463df22da273cbca19735ec9e15243 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 17 Apr 2024 14:49:20 +0200 Subject: [feature] Status source endpoint (#2848) * [feature] statusSource endpoint * finish up --- internal/api/client/statuses/status.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/api/client/statuses/status.go') diff --git a/internal/api/client/statuses/status.go b/internal/api/client/statuses/status.go index 266481b91..33af9c456 100644 --- a/internal/api/client/statuses/status.go +++ b/internal/api/client/statuses/status.go @@ -67,6 +67,9 @@ const ( // HistoryPath is used for fetching history of posts. HistoryPath = BasePathWithID + "/history" + + // SourcePath is used for fetching source of a post. + SourcePath = BasePathWithID + "/source" ) type Module struct { @@ -110,4 +113,5 @@ func (m *Module) Route(attachHandler func(method string, path string, f ...gin.H // history/edit stuff attachHandler(http.MethodGet, HistoryPath, m.StatusHistoryGETHandler) + attachHandler(http.MethodGet, SourcePath, m.StatusSourceGETHandler) } -- cgit v1.2.3