frostfs-s3-gw/cmd/s3-gw/app_router.go
Roman Khimov e622f1987b Makefile: deduplicate binaries
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-20 16:26:20 +03:00

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