aboutsummaryrefslogtreecommitdiff
path: root/application_router.go
diff options
context:
space:
mode:
Diffstat (limited to 'application_router.go')
-rw-r--r--application_router.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/application_router.go b/application_router.go
index 6431e22..30ec7c6 100644
--- a/application_router.go
+++ b/application_router.go
@@ -269,9 +269,9 @@ func CreateApplicationRouter(applicationContext *ApplicationContext,
}
if result {
- c.Status(http.StatusAccepted)
- notificationController.Notify("connections.action", UpdateNotification,
- gin.H{"connection_id": c.Param("id"), "action": c.Param("action")})
+ response := gin.H{"connection_id": c.Param("id"), "action": c.Param("action")}
+ success(c, response)
+ notificationController.Notify("connections.action", UpdateNotification, response)
} else {
notFound(c, gin.H{"connection": id})
}