mirror of
https://github.com/minio/minio.git
synced 2025-11-28 21:18:10 -05:00
web: Removing dependency for gpg and downloading assets.
Assets are vendorized from now on and updated for each release.
This commit is contained in:
13
routers.go
13
routers.go
@@ -20,6 +20,7 @@ import (
|
||||
"net"
|
||||
"net/http"
|
||||
|
||||
"github.com/elazarl/go-bindata-assetfs"
|
||||
router "github.com/gorilla/mux"
|
||||
jsonrpc "github.com/gorilla/rpc/v2"
|
||||
"github.com/gorilla/rpc/v2/json2"
|
||||
@@ -27,6 +28,7 @@ import (
|
||||
"github.com/minio/minio/pkg/fs"
|
||||
"github.com/minio/minio/pkg/probe"
|
||||
"github.com/minio/minio/pkg/s3/signature4"
|
||||
"github.com/minio/miniobrowser"
|
||||
)
|
||||
|
||||
// storageAPI container for S3 compatible API.
|
||||
@@ -67,6 +69,17 @@ func (h indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
h.handler.ServeHTTP(w, r)
|
||||
}
|
||||
|
||||
const assetPrefix = "production"
|
||||
|
||||
func assetFS() *assetfs.AssetFS {
|
||||
return &assetfs.AssetFS{
|
||||
Asset: miniobrowser.Asset,
|
||||
AssetDir: miniobrowser.AssetDir,
|
||||
AssetInfo: miniobrowser.AssetInfo,
|
||||
Prefix: assetPrefix,
|
||||
}
|
||||
}
|
||||
|
||||
// registerAPIHandlers - register all the handlers to their respective paths
|
||||
func registerAPIHandlers(mux *router.Router, a storageAPI, w *webAPI) {
|
||||
// Minio rpc router
|
||||
|
||||
Reference in New Issue
Block a user