summaryrefslogtreecommitdiff
path: root/internal/server/handler/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/handler/handler.go')
-rw-r--r--internal/server/handler/handler.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/server/handler/handler.go b/internal/server/handler/handler.go
index 25a4d12..46bf73e 100644
--- a/internal/server/handler/handler.go
+++ b/internal/server/handler/handler.go
@@ -67,11 +67,12 @@ func (h Handler) Get(w http.ResponseWriter, r *http.Request) error {
return fmt.Errorf("no entry with id %s found", id)
}
- jsonBytes, err := ent.Serialize()
+ bytes, err := ent.JSONBytes()
if err != nil {
return err
}
- fmt.Fprint(w, string(jsonBytes))
+
+ fmt.Fprint(w, string(bytes))
return nil
}