[feature] Stub status history endpoint (#2847)

This commit is contained in:
tobi 2024-04-17 14:06:49 +02:00 committed by GitHub
commit ef16919d4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 381 additions and 0 deletions

View file

@ -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)
}