mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
18 lines
312 B
Go
18 lines
312 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/go-chi/chi/v5"
|
|
)
|
|
|
|
func (m *MainHandler) walletSummaryHandler(w http.ResponseWriter, r *http.Request) {
|
|
summary, err := m.manager.GetWalletSummary(r.Context(), chi.URLParam(r, "walletID"))
|
|
if err != nil {
|
|
internalError(w, r, err)
|
|
return
|
|
}
|
|
|
|
ok(w, summary)
|
|
}
|