|
|
|
|
@ -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 { |
|
|
|
|
|