1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 22:59:43 +02:00

implemented edition license checks

This commit is contained in:
Harvey Kandola 2017-02-23 16:39:23 -08:00
parent edccb39019
commit a4e3264e0c
19 changed files with 146 additions and 19 deletions

View file

@ -109,25 +109,13 @@ func GetLicense(w http.ResponseWriter, r *http.Request) {
fmt.Println(err)
}
output, err := xml.MarshalIndent(x, " ", " ")
output, err := xml.Marshal(x)
if err != nil {
fmt.Printf("error: %v\n", err)
}
w.WriteHeader(http.StatusOK)
w.Write(output)
// // marshal as JSON
// var y map[string]interface{}
// json.Unmarshal([]byte(config), &y)
// json, err := json.Marshal(y)
// if err != nil {
// writeJSONMarshalError(w, method, "EDITION-LICENSE", err)
// return
// }
// util.WriteSuccessBytes(w, json)
}
// SaveLicense persists product license