Skip to content

Commit 326128c

Browse files
Updated handler for future work on getting sessions and transactions on frontends
1 parent 7d4612b commit 326128c

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

internal/session/handler.go

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
/*
1313
TODO: watchdog for session
14-
Live sessions and transactions can be montired through Redis and PostgreSQL
14+
Live sessions and transactions can be monitored through Redis and PostgreSQL
1515
the watchdog here shows the processing happening, which needs to be done in the
1616
later stages of development
1717
*/
@@ -64,3 +64,27 @@ func (m *Manager) IssueTransaction(w http.ResponseWriter, r *http.Request) {
6464
"txn_id": tx.ID.String(),
6565
})
6666
}
67+
68+
/*
69+
get single session data
70+
requires user authentication from middleware
71+
user/
72+
*/
73+
74+
/*
75+
get user transactions information
76+
requires user authentication from middleware
77+
user/
78+
*/
79+
80+
/*
81+
get all sessions in the system
82+
requires admin authentication from middleware
83+
admin/
84+
*/
85+
86+
/*
87+
get all transaction in the system
88+
requires admin authentication from middleware
89+
admin/
90+
*/

0 commit comments

Comments
 (0)