mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-27 12:28:40 +08:00
25 lines
445 B
Go
25 lines
445 B
Go
|
// DO NOT EDIT, generated by goctl
|
||
|
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),
|
||
|
},
|
||
|
})
|
||
|
}
|