|
|
|
@ -21,7 +21,6 @@ import ( |
|
|
|
|
|
|
|
|
|
router "github.com/gorilla/mux" |
|
|
|
|
"github.com/minio/minio/pkg/rpc" |
|
|
|
|
"github.com/rs/cors" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// getRPCHandler rpc handler
|
|
|
|
@ -40,5 +39,5 @@ func getRPCHandler() http.Handler { |
|
|
|
|
// registerRPC - register rpc handlers
|
|
|
|
|
func registerRPC(mux *router.Router, s *rpc.Server) http.Handler { |
|
|
|
|
mux.Handle("/rpc", s) |
|
|
|
|
return cors.Default().Handler(mux) |
|
|
|
|
return mux |
|
|
|
|
} |
|
|
|
|