This commit is contained in:
2026-04-20 21:29:22 +02:00
parent 53dd49612d
commit 89fc0119f3
25 changed files with 3744 additions and 134 deletions
+11
View File
@@ -6,6 +6,17 @@ import (
"net/http"
)
func (s *Server) handleNewsSync(w http.ResponseWriter, r *http.Request) {
go func() {
if err := s.poller.Sync(); err != nil {
// logged inside Sync()
_ = err
}
}()
w.Header().Set("Content-Type", "application/json")
w.Write([]byte(`{"status":"syncing"}`))
}
type newsItem struct {
ID int `json:"id"`
Ticker string `json:"ticker"`