mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
use package name correctly (#5827)
This commit is contained in:
@@ -23,7 +23,7 @@ import (
|
||||
|
||||
"github.com/elazarl/go-bindata-assetfs"
|
||||
"github.com/gorilla/handlers"
|
||||
router "github.com/gorilla/mux"
|
||||
"github.com/gorilla/mux"
|
||||
jsonrpc "github.com/gorilla/rpc/v2"
|
||||
"github.com/gorilla/rpc/v2/json2"
|
||||
"github.com/minio/minio/browser"
|
||||
@@ -60,7 +60,7 @@ func assetFS() *assetfs.AssetFS {
|
||||
const specialAssets = ".*index_bundle.*.js$|.*loader.css$|.*logo.svg$|.*firefox.png$|.*safari.png$|.*chrome.png$|.*favicon.ico$"
|
||||
|
||||
// registerWebRouter - registers web router for serving minio browser.
|
||||
func registerWebRouter(mux *router.Router) error {
|
||||
func registerWebRouter(router *mux.Router) error {
|
||||
// Initialize Web.
|
||||
web := &webAPIHandlers{
|
||||
ObjectAPI: newObjectLayerFn,
|
||||
@@ -71,7 +71,7 @@ func registerWebRouter(mux *router.Router) error {
|
||||
codec := json2.NewCodec()
|
||||
|
||||
// Minio browser router.
|
||||
webBrowserRouter := mux.NewRoute().PathPrefix(minioReservedBucketPath).Subrouter()
|
||||
webBrowserRouter := router.PathPrefix(minioReservedBucketPath).Subrouter()
|
||||
|
||||
// Initialize json rpc handlers.
|
||||
webRPC := jsonrpc.NewServer()
|
||||
|
||||
Reference in New Issue
Block a user