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"]' +}