frostfs-s3-gw/cmd/gate/app_router.go

12 lines
320 B
Go

package main
import "github.com/gorilla/mux"
const systemPath = "/system"
func newS3Router() *mux.Router {
// Initialize router. `SkipClean(true)` stops gorilla/mux from
// normalizing URL path minio/minio#3256
// avoid URL path encoding minio/minio#8950
return mux.NewRouter().SkipClean(true).UseEncodedPath()
}