aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/routes.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/routes.go b/api/routes.go
index a5d0357..ff65e89 100644
--- a/api/routes.go
+++ b/api/routes.go
@@ -48,8 +48,8 @@ func getHashFunc(w http.ResponseWriter, r *http.Request) {
// otherwise, return paste content and current time
w.Header().Set("Content-Type", "application/json")
pasteMap := map[string]interface{} {
- "Timestamp": time.Now(),
- "Content": paste.Content,
+ "timestamp": time.Now(),
+ "content": paste.Content,
}
jsonData, _ := json.Marshal(pasteMap)
fmt.Fprintf(w, "%+v", string(jsonData))