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.
OneAuth/oa/internal/handler/routes.go

37 lines
645 B
Go

// Code generated by goctl. DO NOT EDIT.
package handler
import (
"net/http"
app "oa/internal/handler/app"
user "oa/internal/handler/user"
"oa/internal/svc"
"github.com/zeromicro/go-zero/rest"
)
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodPost,
Path: "/login",
Handler: app.LoginHandler(serverCtx),
},
},
rest.WithPrefix("/api/app"),
)
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodPost,
Path: "/login",
Handler: user.LoginHandler(serverCtx),
},
},
rest.WithPrefix("/api/user"),
)
}