mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 21:02:26 -05:00
[feature] Stub status history endpoint (#2847)
This commit is contained in:
parent
8cf685fbe9
commit
ef16919d4a
6 changed files with 381 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue