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:
parent
3f87401d49
commit
edccb39019
5 changed files with 22 additions and 40 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue