feat: add feedback acknowledgement
This commit is contained in:
@@ -314,9 +314,10 @@ func (s *Server) setupRouter() {
|
||||
// ever needs to change.
|
||||
if s.statsH != nil {
|
||||
r.Get("/stats", s.statsH.Render)
|
||||
// One-way "mark resolved" per feedback row — POST so a refresh of
|
||||
// /stats can't replay it, and it lives at the same public access
|
||||
// level as /stats itself (gate both together if that changes).
|
||||
// One-way per-row feedback actions — POST so a refresh of /stats
|
||||
// can't replay them. Both live at the same public access level as
|
||||
// /stats itself (gate them together if that ever changes).
|
||||
r.Post("/stats/feedback/{id}/acknowledge", s.statsH.AcknowledgeFeedback)
|
||||
r.Post("/stats/feedback/{id}/resolve", s.statsH.ResolveFeedback)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user