diff options
author | 2024-04-17 14:49:20 +0200 | |
---|---|---|
committer | 2024-04-17 13:49:20 +0100 | |
commit | cef9924d9a463df22da273cbca19735ec9e15243 (patch) | |
tree | 75271d1b4cd1ed8a91ec1d1a6360338866224a7f /internal/api/client/statuses/status.go | |
parent | [feature] Stub status history endpoint (#2847) (diff) | |
download | gotosocial-cef9924d9a463df22da273cbca19735ec9e15243.tar.xz |
[feature] Status source endpoint (#2848)
* [feature] statusSource endpoint
* finish up
Diffstat (limited to 'internal/api/client/statuses/status.go')
-rw-r--r-- | internal/api/client/statuses/status.go | 4 |
1 files changed, 4 insertions, 0 deletions
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) } |