Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit afec1f1

Browse files
puneet2019puneetmahajan
authored andcommitted
allow rest requests via grpc. (#383)
1 parent 80679a6 commit afec1f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x/lscosmos/module.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package lscosmos
22

33
import (
4+
"context"
45
"encoding/json"
56
"fmt"
67

@@ -73,6 +74,8 @@ func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Rout
7374
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module.
7475
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
7576
// this line is used by starport scaffolding # 2
77+
types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx))
78+
7679
}
7780

7881
// GetTxCmd returns the capability module's root tx command.

0 commit comments

Comments
 (0)