mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-04-30 20:52:01 +08:00
20 lines
496 B
Go
20 lines
496 B
Go
package httphandler
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func (h *HttpHandler) Mount(router fiber.Router) error {
|
|
r := router.Group("/v2/brc20")
|
|
|
|
r.Post("/balances/wallet/batch", h.GetBalancesByAddressBatch)
|
|
r.Get("/balances/wallet/:wallet", h.GetBalancesByAddress)
|
|
r.Get("/transactions", h.GetTransactions)
|
|
r.Get("/holders/:id", h.GetHolders)
|
|
r.Get("/info/:id", h.GetTokenInfo)
|
|
r.Get("/utxos/wallet/:wallet", h.GetUTXOsByAddress)
|
|
r.Get("/block", h.GetCurrentBlock)
|
|
|
|
return nil
|
|
}
|