File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ func UpdateHistory(c *gin.Context) {
6464 db .Save (& history )
6565
6666 db .Close ()
67+
68+ c .JSON (http .StatusOK , gin.H {"message" : "History updated successfully!" })
6769}
6870
6971func GetHistories (c * gin.Context ) {
Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ func UpdateLog(c *gin.Context) {
7979 db .Save (& log )
8080
8181 db .Close ()
82+
83+ c .JSON (http .StatusOK , gin.H {"message" : "Log updated successfully!" })
8284}
8385
8486func GetLogs (c * gin.Context ) {
Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ func UpdateSession(c *gin.Context) {
7070 db .Save (& session )
7171
7272 db .Close ()
73+
74+ c .JSON (http .StatusOK , gin.H {"message" : "Session updated successfully!" })
7375}
7476
7577func GetSessions (c * gin.Context ) {
You can’t perform that action at this time.
0 commit comments