Browse Source

/api/settings

master
yuriy0803 2 years ago
parent
commit
08f20bcbee
  1. 1
      api/server.go

1
api/server.go

@ -250,6 +250,7 @@ func (s *ApiServer) listen() {
r.HandleFunc("/api/blocks", s.BlocksIndex) r.HandleFunc("/api/blocks", s.BlocksIndex)
r.HandleFunc("/api/payments", s.PaymentsIndex) r.HandleFunc("/api/payments", s.PaymentsIndex)
r.HandleFunc("/api/accounts/{login:0x[0-9a-fA-F]{40}}", s.AccountIndex) 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) r.NotFoundHandler = http.HandlerFunc(notFound)
err := http.ListenAndServe(s.config.Listen, r) err := http.ListenAndServe(s.config.Listen, r)
if err != nil { if err != nil {

Loading…
Cancel
Save