feat: show account transfer history
All checks were successful
Deploy / build-and-deploy (push) Successful in 2m50s

This commit is contained in:
juancwu 2026-02-20 16:43:25 +00:00
commit e10186fd7a
7 changed files with 223 additions and 2 deletions

View file

@ -239,6 +239,10 @@ func SetupRoutes(a *app.App) http.Handler {
mux.HandleFunc("GET /app/spaces/{spaceID}/components/report-charts", reportChartsWithAuth)
// Component routes (HTMX updates)
transferHistoryHandler := middleware.RequireSpaceAccess(a.SpaceService)(space.GetTransferHistory)
transferHistoryWithAuth := middleware.RequireAuth(transferHistoryHandler)
mux.HandleFunc("GET /app/spaces/{spaceID}/components/transfer-history", transferHistoryWithAuth)
balanceCardHandler := middleware.RequireSpaceAccess(a.SpaceService)(space.GetBalanceCard)
balanceCardWithAuth := middleware.RequireAuth(balanceCardHandler)
mux.HandleFunc("GET /app/spaces/{spaceID}/components/balance", balanceCardWithAuth)