misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-22 15:43:32 +01:00
parent 87800ef2dd
commit bec98e3d1f

View file

@ -53,6 +53,5 @@ func ShowRestEvents(c *gin.Context) {
func ClearRestEvents(c *gin.Context) { func ClearRestEvents(c *gin.Context) {
session.I.Events.Clear() session.I.Events.Clear()
session.I.Events.Add("sys.log.cleared", nil)
c.JSON(200, gin.H{"success": true}) c.JSON(200, gin.H{"success": true})
} }