From 01e4937583dfb25bb2ada499b442774f5735cac6 Mon Sep 17 00:00:00 2001 From: Sydonian <794346190@qq.com> Date: Thu, 9 May 2024 09:19:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=B5=8B=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/internal/http/server.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/internal/http/server.go b/client/internal/http/server.go index de978d0..2c93745 100644 --- a/client/internal/http/server.go +++ b/client/internal/http/server.go @@ -39,7 +39,7 @@ func (s *Server) Serve() error { } func (s *Server) initRouters() { - rt := s.engine.Use(auth) + rt := s.engine.Use() rt.GET(cdssdk.ObjectDownloadPath, s.Object().Download) rt.POST(cdssdk.ObjectUploadPath, s.Object().Upload) @@ -66,9 +66,4 @@ func (s *Server) initRouters() { rt.POST(cdssdk.BucketCreatePath, s.Bucket().Create) rt.POST(cdssdk.BucketDeletePath, s.Bucket().Delete) rt.GET(cdssdk.BucketListUserBucketsPath, s.Bucket().ListUserBuckets) - - rt.GET("/bucket/listDetails", s.Temp().ListDetails) - rt.GET("/bucket/getObjects", s.Temp().GetObjects) - rt.GET("/object/getDetail", s.Temp().GetObjectDetail) - rt.GET("/temp/getDatabaseAll", s.Temp().GetDatabaseAll) }