From 02de0512443f43d46d708122632315b2ee40c522 Mon Sep 17 00:00:00 2001 From: Vit Listik Date: Sun, 13 Nov 2022 23:24:07 +0100 Subject: [PATCH] fix import path and comment for latest endpoint --- internal/syncconnector/reader.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/syncconnector/reader.go b/internal/syncconnector/reader.go index f278189..03e096e 100644 --- a/internal/syncconnector/reader.go +++ b/internal/syncconnector/reader.go @@ -3,7 +3,7 @@ package syncconnector import ( "bytes" "encoding/json" - "github.com/curusarn/resh/internal/record" + "github.com/curusarn/resh/record" "io" "io/ioutil" "log" @@ -51,3 +51,8 @@ func (sc SyncConnector) downloadRecords(lastRecords map[string]string) ([]record return records, nil } + +func latest() { + //curl localhost:8080/latest -X POST -d '[]' + //curl localhost:8080/latest -X POST -d '["one"]' +}