You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
469 B
Go
28 lines
469 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"bookstore/api/internal/svc"
|
|
|
|
"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),
|
|
},
|
|
},
|
|
)
|
|
}
|