mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 21:02:26 -05:00
[feature] Status source endpoint (#2848)
* [feature] statusSource endpoint * finish up
This commit is contained in:
parent
ef16919d4a
commit
cef9924d9a
7 changed files with 320 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue