diff --git a/web-definitions.go b/web-definitions.go index 7beb17de4..00e83d318 100644 --- a/web-definitions.go +++ b/web-definitions.go @@ -36,6 +36,9 @@ type ServerInfoArgs struct{} // ListBucketsArgs - list bucket args. type ListBucketsArgs struct{} +// GenericArgs - empty struct +type GenericArgs struct{} + // DiskInfoRep - disk info reply. type DiskInfoRep struct { DiskInfo disk.Info `json:"diskInfo"` diff --git a/web-handlers.go b/web-handlers.go index bebabca27..2284f2f15 100644 --- a/web-handlers.go +++ b/web-handlers.go @@ -51,6 +51,12 @@ func isAuthenticated(req *http.Request) bool { return tokenRequest.Valid } +// GetUIVersion - get UI version +func (web WebAPI) GetUIVersion(r *http.Request, args *GenericArgs, reply *GenericRep) error { + reply.UIVersion = uiVersion + return nil +} + // ServerInfo - get server info. func (web *WebAPI) ServerInfo(r *http.Request, args *ServerInfoArgs, reply *ServerInfoRep) error { if !isAuthenticated(r) {