mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 13:14:24 +08:00
fix(NET-581): add tenant tier to status api (#2558)
* fix(NET-581): add tenant tier to status api * fix(NET-581): make tenant tier boolean in status api * fix(NET-581): rename EE to Pro
This commit is contained in:
parent
073adacddb
commit
fde74e0627
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
|
|||
DB bool `json:"db_connected"`
|
||||
Broker bool `json:"broker_connected"`
|
||||
LicenseError string `json:"license_error"`
|
||||
IsPro bool `json:"is_pro"`
|
||||
}
|
||||
|
||||
licenseErr := ""
|
||||
|
@ -94,6 +95,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
|
|||
DB: database.IsConnected(),
|
||||
Broker: mq.IsConnected(),
|
||||
LicenseError: licenseErr,
|
||||
IsPro: servercfg.IsPro,
|
||||
}
|
||||
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
|
Loading…
Add table
Reference in a new issue