Add `UPDATENOTIFY` Handler Function

pull/258/head
Emanuel Bennici 2019-10-04 14:23:07 +02:00
parent 29ace420ae
commit 4227f3c88f
No known key found for this signature in database
GPG Key ID: 17FA2D56BAD01661
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ var handlerFuncs = func(w http.ResponseWriter, r *http.Request) template.FuncMap
"USE_CDN": func() bool {
return core.CoreApp.UseCdn.Bool
},
"UPDATENOTIFY": func() bool {
return core.CoreApp.UpdateNotify.Bool
},
"QrAuth": func() string {
return fmt.Sprintf("statping://setup?domain=%v&api=%v", core.CoreApp.Domain, core.CoreApp.ApiSecret)
},