diff --git a/APPL/API2/model_notes.inc b/APPL/API2/model_notes.inc index c3338fdf5e..0e839c9794 100644 --- a/APPL/API2/model_notes.inc +++ b/APPL/API2/model_notes.inc @@ -173,22 +173,7 @@ function model_notes(module) } } - // TODO: REST_GET niet (rechtstreeks) toestaan? - this.REST_GET = function _GET(params) - { - var query = api2.sqlfields(params, this ); - var wheres = api2.sqlfilter(params, this); - query.wheres = query.wheres.concat(wheres); - - var sql = "SELECT " + query.selects.join(", ") - + " FROM " + query.tables.join(", "); - if (query.wheres.length) - sql += " WHERE " + query.wheres.join(" AND " ); - - var json = api2.sql2json (params, sql, this ); - - return json; - }; + // Geen REST_GET, dat doe je maar via het hoofdmodel/include niet (rechtstreeks) toestaan? this.REST_PUT = function (params, jsondata, the_key) /* update note */ {