add announcement emails

After selecting users in the accounts tab, you can press 'Announce',
then write a subject and message (with markdown), and an email will be
sent to each selected user.
This commit is contained in:
Harvey Tindall
2021-02-18 14:58:53 +00:00
parent adbb5b9d38
commit fa433c88a8
18 changed files with 226 additions and 30 deletions
+1
View File
@@ -138,6 +138,7 @@ func (app *appContext) loadRoutes(router *gin.Engine) {
api.POST(p+"/users/emails", app.ModifyEmails)
// api.POST(p + "/setDefaults", app.SetDefaults)
api.POST(p+"/users/settings", app.ApplySettings)
api.POST(p+"/users/announce", app.Announce)
api.GET(p+"/config", app.GetConfig)
api.POST(p+"/config", app.ModifyConfig)
api.POST(p+"/restart", app.restart)