routes.go 537 B

12345678910111213141516171819202122232425262728
  1. // Code generated by goctl. DO NOT EDIT.
  2. package handler
  3. import (
  4. "net/http"
  5. "ylink/bff/authbff/api/internal/svc"
  6. "github.com/zeromicro/go-zero/rest"
  7. )
  8. func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
  9. server.AddRoutes(
  10. []rest.Route{
  11. {
  12. Method: http.MethodPost,
  13. Path: "/player-login",
  14. Handler: playerLoginHandler(serverCtx),
  15. },
  16. {
  17. Method: http.MethodPost,
  18. Path: "/cs-login",
  19. Handler: csLoginHandler(serverCtx),
  20. },
  21. },
  22. rest.WithPrefix("/api/v1/auth"),
  23. )
  24. }