Skip to content

Commit

Permalink
Fix the router
Browse files Browse the repository at this point in the history
Signed-off-by: JmPotato <ghzpotato@gmail.com>
  • Loading branch information
JmPotato committed May 6, 2023
1 parent 4bf8325 commit e5537a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mcs/tso/server/apis/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func NewService(srv *tsoserver.Service) *Service {
func (s *Service) RegisterAdminRouter() {
router := s.root.Group("admin")
tsoAdminHandler := tso.NewAdminHandler(s.srv.GetHandler(), s.rd)
router.POST("/admin/reset-ts", gin.WrapF(tsoAdminHandler.ResetTS))
router.POST("/reset-ts", gin.WrapF(tsoAdminHandler.ResetTS))
}

// RegisterKeyspaceGroupRouter registers the router of the TSO keyspace group handler.
Expand Down

0 comments on commit e5537a1

Please sign in to comment.