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

event handlers framework

This commit is contained in:
Harvey Kandola 2017-05-01 12:13:05 +01:00
parent 740c2ca189
commit bcabe494e3
15 changed files with 1091 additions and 5 deletions

View file

@ -20,6 +20,7 @@ import (
"fmt"
"github.com/documize/community/core/api/request"
"github.com/documize/community/core/api/util"
"github.com/documize/community/core/event"
)
// GetSMTPConfig returns installation-wide SMTP settings
@ -157,6 +158,8 @@ func SaveLicense(w http.ResponseWriter, r *http.Request) {
request.ConfigSet("EDITION-LICENSE", js)
event.Handler().Publish(string(event.TypeSystemLicenseChange))
util.WriteSuccessEmptyJSON(w)
}