MCPcopy Create free account
hub / github.com/digisamroc/eraser / renderSettingsWithMessage

Method renderSettingsWithMessage

internal/web/server.go:621–629  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request, message string, success bool)

Source from the content-addressed store, hash-verified

619}
620
621func (s *Server) renderSettingsWithMessage(w http.ResponseWriter, r *http.Request, message string, success bool) {
622 data := map[string]interface{}{
623 "Title": "Settings",
624 "Config": s.config,
625 "InboxMessage": message,
626 "InboxSuccess": success,
627 }
628 s.renderWithCSRF(w, r, "settings.html", data)
629}
630
631// API handlers
632

Callers 1

handleSettingsInboxMethod · 0.95

Calls 1

renderWithCSRFMethod · 0.95

Tested by

no test coverage detected