Skip to content

Commit f30344c

Browse files
Added transaction scheduling route
1 parent 464f5a0 commit f30344c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

api/routes/routes.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,11 @@ func RegisterRoutes(mux *http.ServeMux, sessionManager *session.Manager) {
2929
middleware.AuthenticationMiddleware(traversal.ListFilesInDirectory),
3030
),
3131
))
32+
33+
/* for scheduling a transaction */
34+
mux.Handle("POST /transactions/schedule", http.HandlerFunc(
35+
middleware.LoggingMiddleware(
36+
middleware.AuthenticationMiddleware(sessionManager.IssueTransaction),
37+
),
38+
))
3239
}

0 commit comments

Comments
 (0)