diff --git a/client/internal/http/server.go b/client/internal/http/server.go index 3a12144..9726f25 100644 --- a/client/internal/http/server.go +++ b/client/internal/http/server.go @@ -48,7 +48,7 @@ func (s *Server) initRouters() { s.routeV1(s.engine, rt) rt.GET(cdsapi.ObjectListPathByPath, s.Object().ListByPath) - rt.POST(cdsapi.ObjectListByIDsPath, s.Object().ListByIDs) + rt.GET(cdsapi.ObjectListByIDsPath, s.Object().ListByIDs) rt.GET(cdsapi.ObjectDownloadPath, s.Object().Download) rt.GET(cdsapi.ObjectDownloadByPathPath, s.Object().DownloadByPath) rt.POST(cdsapi.ObjectUploadPath, s.Object().Upload) @@ -85,7 +85,7 @@ func (s *Server) routeV1(eg *gin.Engine, rt gin.IRoutes) { v1 := eg.Group("/v1") v1.GET(cdsapi.ObjectListPathByPath, s.awsAuth.Auth, s.Object().ListByPath) - v1.POST(cdsapi.ObjectListByIDsPath, s.awsAuth.Auth, s.Object().ListByIDs) + v1.GET(cdsapi.ObjectListByIDsPath, s.awsAuth.Auth, s.Object().ListByIDs) v1.GET(cdsapi.ObjectDownloadPath, s.awsAuth.Auth, s.Object().Download) v1.GET(cdsapi.ObjectDownloadByPathPath, s.awsAuth.Auth, s.Object().DownloadByPath) v1.POST(cdsapi.ObjectUploadPath, s.awsAuth.AuthWithoutBody, s.Object().Upload)