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