Skip to content

Commit

Permalink
add config tx
Browse files Browse the repository at this point in the history
Signed-off-by: Yuanmao Zhu <yuanmao@ualberta.ca>
  • Loading branch information
zhuyuanmao committed Aug 9, 2024
1 parent 27524ca commit c55d986
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/agent/sdk-agent/internal/routers/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ func CreateChannel(c *gin.Context) {
func UpdateChannel(c *gin.Context) {
c.IndentedJSON(http.StatusOK, nil)
}

func SignConfigTx(c *gin.Context) {
c.IndentedJSON(http.StatusOK, nil)
}
1 change: 1 addition & 0 deletions src/agent/sdk-agent/internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ func (s *server) Start() {
grouter.GET("/channels", routers.GetChannel)
grouter.PUT("/channels", routers.UpdateChannel)
grouter.POST("/channels", routers.CreateChannel)
grouter.POST("/configtx", routers.SignConfigTx)
grouter.Run("localhost:8080")
}

0 comments on commit c55d986

Please sign in to comment.