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

license code refactoring

This commit is contained in:
Harvey Kandola 2017-02-23 10:29:51 -08:00
parent 3f87401d49
commit edccb39019
5 changed files with 22 additions and 40 deletions

View file

@ -18,7 +18,6 @@ import (
"net/http"
"text/template"
"github.com/documize/community/core"
"github.com/documize/community/core/api/entity"
"github.com/documize/community/core/api/request"
"github.com/documize/community/core/log"
@ -41,13 +40,11 @@ func GetMeta(w http.ResponseWriter, r *http.Request) {
return
}
product := core.Product()
data.OrgID = org.RefID
data.Title = org.Title
data.Message = org.Message
data.AllowAnonymousAccess = org.AllowAnonymousAccess
data.Version = product.Version
data.Version = Product.Version
json, err := json.Marshal(data)