[feature] Stub status history endpoint (#2847)

This commit is contained in:
tobi
2024-04-17 14:06:49 +02:00
committed by GitHub
parent 8cf685fbe9
commit ef16919d4a
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)
}