diff options
author | Alexander_Kabui | 2024-08-02 19:25:19 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-08-02 19:56:47 +0300 |
commit | f2d89a93a2a00b7c12095189da63fd627ff27901 (patch) | |
tree | ea3fd758f5a4b4d37dc0c1134b42dc9676454ebb | |
parent | 3f23cf320239cab558594b98ce75177e6fe3dac0 (diff) | |
download | gn-guile-f2d89a93a2a00b7c12095189da63fd627ff27901.tar.gz |
code refactoring
-rwxr-xr-x | web/webserver.scm | 8 |
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)))) |