block_chain_router.go 776 字节
package routers

import (
	"github.com/beego/beego/v2/server/web"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/port/beego/controllers"
)

func init() {
	//web.Router("/block-chains/", &controllers.BlockChainController{}, "Post:CreateBlockChain")
	//web.Router("/block-chains/:blockChainId", &controllers.BlockChainController{}, "Put:UpdateBlockChain")
	//web.Router("/block-chains/:blockChainId", &controllers.BlockChainController{}, "Get:GetBlockChain")
	//web.Router("/block-chains/:blockChainId", &controllers.BlockChainController{}, "Delete:RemoveBlockChain")
	web.Router("/block-chains/", &controllers.BlockChainController{}, "Post:ListBlockChain")
	web.Router("/block-chains/token", &controllers.BlockChainController{}, "Post:GetBlockChainToken")
}