Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Dec 10, 2023
1 parent c071e00 commit 5e99d6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions bridge-history-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ provides REST APIs. Please refer to the API details below.
// @Router /api/txs [get]
```

2. `/withdrawals`
2. `/l2withdrawals`
```
// @Summary get all L2 withdrawals under given address
// @Accept plain
Expand All @@ -55,10 +55,10 @@ provides REST APIs. Please refer to the API details below.
// @Param page_size query int true "page size"
// @Param page query int true "page"
// @Success 200
// @Router /api/withdrawals [get]
// @Router /api/l2withdrawals [get]
```

3. `/unclaimedwithdrawals`
3. `/l2unclaimedwithdrawals`
```
// @Summary get all L2 unclaimed withdrawals under given address
// @Accept plain
Expand All @@ -67,7 +67,7 @@ provides REST APIs. Please refer to the API details below.
// @Param page_size query int true "page size"
// @Param page query int true "page"
// @Success 200
// @Router /api/unclaimedwithdrawals [get]
// @Router /api/l2unclaimedwithdrawals [get]
```

4. `/txsbyhashes`
Expand Down
4 changes: 2 additions & 2 deletions bridge-history-api/internal/route/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func Route(router *gin.Engine, conf *config.Config, reg prometheus.Registerer) {
r := router.Group("api/")

r.GET("/txs", api.HistoryCtrler.GetTxsByAddress)
r.GET("/withdrawals", api.HistoryCtrler.GetL2WithdrawalsByAddress)
r.GET("/unclaimedwithdrawals", api.HistoryCtrler.GetL2UnclaimedWithdrawalsByAddress)
r.GET("/l2withdrawals", api.HistoryCtrler.GetL2WithdrawalsByAddress)
r.GET("/l2unclaimedwithdrawals", api.HistoryCtrler.GetL2UnclaimedWithdrawalsByAddress)

r.POST("/txsbyhashes", api.HistoryCtrler.PostQueryTxsByHashes)
}

0 comments on commit 5e99d6f

Please sign in to comment.