|
|
@@ -5,15 +5,16 @@ import (
|
|
|
"encoding/json"
|
|
|
"errors"
|
|
|
"fmt"
|
|
|
- "github.com/gravitl/netmaker/db"
|
|
|
- "github.com/gravitl/netmaker/schema"
|
|
|
- "github.com/google/go-cmp/cmp"
|
|
|
"net/http"
|
|
|
"os"
|
|
|
"strings"
|
|
|
"syscall"
|
|
|
"time"
|
|
|
|
|
|
+ "github.com/google/go-cmp/cmp"
|
|
|
+ "github.com/gravitl/netmaker/db"
|
|
|
+ "github.com/gravitl/netmaker/schema"
|
|
|
+
|
|
|
"github.com/gorilla/mux"
|
|
|
"golang.org/x/exp/slog"
|
|
|
|
|
|
@@ -149,6 +150,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
|
|
|
IsPro bool `json:"is_pro"`
|
|
|
TrialEndDate time.Time `json:"trial_end_date"`
|
|
|
IsOnTrialLicense bool `json:"is_on_trial_license"`
|
|
|
+ Version string `json:"version"`
|
|
|
}
|
|
|
|
|
|
licenseErr := ""
|
|
|
@@ -173,6 +175,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
|
|
|
IsBrokerConnOpen: mq.IsConnectionOpen(),
|
|
|
LicenseError: licenseErr,
|
|
|
IsPro: servercfg.IsPro,
|
|
|
+ Version: servercfg.Version,
|
|
|
//TrialEndDate: trialEndDate,
|
|
|
//IsOnTrialLicense: isOnTrial,
|
|
|
}
|