From a2986f5904034c54f1e127291c70de1144a05f70 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 4 Jul 2018 16:05:16 -0400 Subject: [PATCH] new end point -> list import logs --- server.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server.js b/server.js index 1824b8b..b807f09 100644 --- a/server.js +++ b/server.js @@ -107,6 +107,14 @@ server.use("/import", upload.single('upload'), function (inReq, inRes) { } ); +//----------------------------------------------------------import_logs-------------------------------------------------------------------------------------------------------------------------------- + +server.get("/import_log", function (inReq, inRes) +{ + var sql = "SELECT jsonb_agg(info) info FROM tps.trans_log WHERE info @> $1::jsonb"; + Postgres.FirstRow(sql, [inReq.query], inRes); +}); + //-------------------------------------------------------------suggest source def---------------------------------------------------------------------------------------------------------------------- server.use("/csv_suggest", upload.single('upload'), function (inReq, inRes) {