go-zero/example/bookstore/api/internal/handler/routes.go
miaogaolin 46995a4d7d
修改不能编辑代码注释 (#92)
* rename file and function name

* update comments of "code generate"
2020-09-21 18:27:35 +08:00

25 lines
451 B
Go

// Code generated by goctl. DO NOT EDIT.
package handler
import (
"bookstore/api/internal/svc"
"net/http"
"github.com/tal-tech/go-zero/rest"
)
func RegisterHandlers(engine *rest.Server, serverCtx *svc.ServiceContext) {
engine.AddRoutes([]rest.Route{
{
Method: http.MethodGet,
Path: "/add",
Handler: addHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/check",
Handler: checkHandler(serverCtx),
},
})
}