feat: add feedback acknowledgement

This commit is contained in:
Krispire Admin
2026-06-04 01:55:39 +05:30
parent e9a96f1ff9
commit d9678ebb3b
7 changed files with 176 additions and 31 deletions
+4 -3
View File
@@ -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)
}