mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-27 20:38:41 +08:00
26 lines
455 B
Go
26 lines
455 B
Go
// DO NOT EDIT, generated by goctl
|
|
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"shorturl/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: "/shorten",
|
|
Handler: shortenHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodGet,
|
|
Path: "/expand",
|
|
Handler: expandHandler(serverCtx),
|
|
},
|
|
})
|
|
}
|