summaryrefslogtreecommitdiff
path: root/internal/api/client/statuses/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/statuses/status.go')
-rw-r--r--internal/api/client/statuses/status.go4
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)
}