From 7ba2971ae78b46cc2278e50dcc8d4d8ab9111a6f Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 7 Aug 2024 17:51:42 +0300 Subject: Use camelcase for json responses. --- web/view/markdown.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/view/markdown.scm') diff --git a/web/view/markdown.scm b/web/view/markdown.scm index d147a8f..d561832 100644 --- a/web/view/markdown.scm +++ b/web/view/markdown.scm @@ -66,7 +66,7 @@ (if (file-exists? abs_path) (let* ((full_path (canonicalize-path abs_path)) (content (call-with-input-file full_path get-string-all)) (commit-sha (get-latest-commit-sha1 repo))) - `(("path" . ,query_path) + `(("file_path" . ,query_path) ("content" . ,content) ("hash" . ,commit-sha)) ) (throw 'file-error (string-append "the file path " abs_path " does not exists"))))) @@ -106,8 +106,8 @@ "--author" (format #f "~a <~a>" username email))) (git-commit-sha (get-latest-commit-sha1 repo))) (if (zero? git-commit-file) - `(("status" . "201") ("message" . "committed file successfully") ("content" . ,content) ("commit-sha" . ,git-commit-sha) ("commit-message" . ,commit-message) ) - `(("status" . "200") ("message" . "Nothing to commit, working tree clean") ("commit-sha" . ,git-commit-sha))))) + `(("status" . "201") ("message" . "committed file successfully") ("content" . ,content) ("commit_sha" . ,git-commit-sha) ("commit_message" . ,commit-message) ) + `(("status" . "200") ("message" . "Nothing to commit, working tree clean") ("commit_sha" . ,git-commit-sha))))) (#f (throw 'system-error (string-append file-path " File does not exist Error")))) (throw 'system-error (string-append repo " Is not a git repo.")))) -- cgit v1.2.3