-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
routes.go
26 lines (20 loc) 路 966 Bytes
/
routes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package http
func (srv *Server) configureRoutes() {
srv.echo.GET("/healthz", srv.Health)
srv.echo.GET("/", srv.Health)
srv.echo.GET("/uniqueProvers", srv.GetUniqueProvers)
srv.echo.GET("/uniqueProposers", srv.GetUniqueProposers)
srv.echo.GET("/eventByAddress", srv.GetCountByAddressAndEventName)
srv.echo.GET("/events", srv.GetByAddressAndEventName)
srv.echo.GET("/stats", srv.GetStats)
srv.echo.GET("/assignedBlocks", srv.GetAssignedBlocksByProverAddress)
srv.echo.GET("/nftsByAddress", srv.GetNFTBalancesByAddessAndChainID)
galaxeAPI := srv.echo.Group("/api")
galaxeAPI.GET("/user-proposed-block", srv.UserProposedBlock)
galaxeAPI.GET("/user-proved-block", srv.UserProvedBlock)
galaxeAPI.GET("/user-bridged", srv.UserBridged)
galaxeAPI.GET("/user-swapped-on-taiko", srv.UserSwappedOnTaiko)
galaxeAPI.GET("/user-added-liquidity", srv.UserAddedLiquidity)
chartAPI := srv.echo.Group("/chart")
chartAPI.GET("/chartByTask", srv.GetChartByTask)
}