mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Status source endpoint (#2848)
* [feature] statusSource endpoint * finish up
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user