Browse Source

去掉测试代码

gitlink
Sydonian 1 year ago
parent
commit
01e4937583
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      client/internal/http/server.go

+ 1
- 6
client/internal/http/server.go View File

@@ -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)
}

Loading…
Cancel
Save