diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 28db69d..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitignore b/.gitignore index 7240670..5bbaca5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ +.DS_Store + config.json data/* diff --git a/rest/utils.go b/rest/utils.go index 2e6ff8b..46ed3e4 100644 --- a/rest/utils.go +++ b/rest/utils.go @@ -17,7 +17,7 @@ func Unauthorized(w http.ResponseWriter) { func Json(w http.ResponseWriter, data interface{}) { w.WriteHeader(200) - bytes, _ := json.Marshal(data) + bytes, _ := json.MarshalIndent(data, "", " ") w.Write(bytes) }