[Lada-commits] [PATCH 05 of 11] Changed proxy to load data from the server

Wald Commits scm-commit at wald.intevation.org
Wed Jul 24 15:28:01 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1374670330 -7200
# Node ID d40a552382a3a840f26cd910207f95b0ce1aa5ad
# Parent  fa108c53da5aa82c06b3d20570997d38be214c41
Changed proxy to load data from the server.

diff -r fa108c53da5a -r d40a552382a3 app/model/Query.js
--- a/app/model/Query.js	Wed Jul 24 14:51:44 2013 +0200
+++ b/app/model/Query.js	Wed Jul 24 14:52:10 2013 +0200
@@ -5,13 +5,15 @@
         {name: "name"},
         {name: "description"},
         {name: "sql"},
-        {name: "fields"},
+        {name: "results"},
         {name: "filters"},
     ],
     proxy: {
-        type: 'memory',
+        type: 'rest',
+        url: 'server/rest/query',
         reader: {
-            type: 'json'
+            type: 'json',
+            root: 'data'
         }
     }
 });


More information about the Lada-commits mailing list