From 08f20bcbeeaa1c013b11e4bdbeed59d185b69c0a Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Mon, 13 Nov 2023 22:49:44 +0100 Subject: [PATCH] /api/settings --- api/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/server.go b/api/server.go index 6521bf5..43be17e 100644 --- a/api/server.go +++ b/api/server.go @@ -250,6 +250,7 @@ func (s *ApiServer) listen() { r.HandleFunc("/api/blocks", s.BlocksIndex) r.HandleFunc("/api/payments", s.PaymentsIndex) r.HandleFunc("/api/accounts/{login:0x[0-9a-fA-F]{40}}", s.AccountIndex) + r.HandleFunc("/api/settings", s.SubscribeHandler).Methods("POST") r.NotFoundHandler = http.HandlerFunc(notFound) err := http.ListenAndServe(s.config.Listen, r) if err != nil {