mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-04-04 15:55:23 +00:00 
			
		
		
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			337 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			337 B
		
	
	
	
		
			Go
		
	
	
	
	
	
|   | package rest | ||
|  | 
 | ||
|  | import ( | ||
|  | 	"github.com/gorilla/mux" | ||
|  | 
 | ||
|  | 	"github.com/cosmos/cosmos-sdk/client/context" | ||
|  | ) | ||
|  | 
 | ||
|  | // REST variable names
 | ||
|  | // nolint
 | ||
|  | const () | ||
|  | 
 | ||
|  | // RegisterRoutes registers swap-related REST handlers to a router
 | ||
|  | func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router) { | ||
|  | 	registerQueryRoutes(cliCtx, r) | ||
|  | 	registerTxRoutes(cliCtx, r) | ||
|  | } |