From ba7edff65440907d435b3d51268217cacfa3c289 Mon Sep 17 00:00:00 2001 From: Zbynek Rybicka Date: Tue, 23 Oct 2018 19:45:51 +0200 Subject: [PATCH] Procs are in GET / --- .gitignore | 2 ++ lib/xsql.js | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c0822830fa..cd2f82ea9f 100644 --- a/.gitignore +++ b/.gitignore @@ -75,3 +75,5 @@ mongod *.ntvs* *.njsproj *.sln + +.history diff --git a/lib/xsql.js b/lib/xsql.js index 4d16b3725a..18400ada95 100644 --- a/lib/xsql.js +++ b/lib/xsql.js @@ -748,7 +748,12 @@ class Xsql { } } - tableObj["routes"] = routes; + var procList = this.getProcList() + for (var j = 0; j < procList.length; j++) { + routes.push(this.prepareRoute(internal, 'post', apiPrefix, '_proc/' + procList[j])) + } + + tableObj['routes'] = routes; schemaRoutes.push(tableObj); }