diff options
author | 2024-04-17 14:06:49 +0200 | |
---|---|---|
committer | 2024-04-17 13:06:49 +0100 | |
commit | ef16919d4a551ead52bb0c7f9ae3f6974b073472 (patch) | |
tree | 3dc372cf00447e6dae01bc4498e1a3e0355919a3 /internal/api/client/statuses/status.go | |
parent | [bugfix] Fix minor API issue w/ boosted statuses (#2846) (diff) | |
download | gotosocial-ef16919d4a551ead52bb0c7f9ae3f6974b073472.tar.xz |
[feature] Stub status history endpoint (#2847)
Diffstat (limited to 'internal/api/client/statuses/status.go')
-rw-r--r-- | internal/api/client/statuses/status.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/api/client/statuses/status.go b/internal/api/client/statuses/status.go index c93d69994..266481b91 100644 --- a/internal/api/client/statuses/status.go +++ b/internal/api/client/statuses/status.go @@ -64,6 +64,9 @@ const ( // ContextPath is used for fetching context of posts ContextPath = BasePathWithID + "/context" + + // HistoryPath is used for fetching history of posts. + HistoryPath = BasePathWithID + "/history" ) type Module struct { @@ -104,4 +107,7 @@ func (m *Module) Route(attachHandler func(method string, path string, f ...gin.H // context / status thread attachHandler(http.MethodGet, ContextPath, m.StatusContextGETHandler) + + // history/edit stuff + attachHandler(http.MethodGet, HistoryPath, m.StatusHistoryGETHandler) } |