aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAlexander_Kabui2024-08-02 19:25:19 +0300
committerAlexander_Kabui2024-08-02 19:56:47 +0300
commitf2d89a93a2a00b7c12095189da63fd627ff27901 (patch)
treeea3fd758f5a4b4d37dc0c1134b42dc9676454ebb /web
parent3f23cf320239cab558594b98ce75177e6fe3dac0 (diff)
downloadgn-guile-f2d89a93a2a00b7c12095189da63fd627ff27901.tar.gz
code refactoring
Diffstat (limited to 'web')
-rwxr-xr-xweb/webserver.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/webserver.scm b/web/webserver.scm
index d40621f..3a7e8da 100755
--- a/web/webserver.scm
+++ b/web/webserver.scm
@@ -204,8 +204,14 @@ otherwise search for set/group data"
(username (assoc-ref post-data "username"))
(email (assoc-ref post-data "email"))
(commit-message (assoc-ref post-data "commit"))
+ (prev-commit (assoc-ref post-data "prev-commit"))
)
- (build-json-response 200 (commit-file repo file-name content commit-message username email))
+ (build-json-response 200
+ (commit-file repo
+ file-name content
+ commit-message
+ username email
+ ""))
))
(lambda (key . args)
(let ((msg (car args))) (build-json-response 400 `(("error" . ,key) ("msg" . ,msg))))