Skip to content

Commit

Permalink
adding GET search startswith ltonetwork#3
Browse files Browse the repository at this point in the history
  • Loading branch information
alopezo committed Feb 18, 2014
1 parent 7a2cdfc commit 90189e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/snomed.js
Expand Up @@ -183,7 +183,8 @@ app.get('/:db/:collection/concepts/:sctid/children?', function(req, res) {
});

app.get('/:db/:collection/descriptions?', function(req, res) {
if (!req.query["query"] || !req.query["searchmode"] || req.query["searchmode"] != "startswith") {
if (true) {
//!req.query["query"] || !req.query["searchmode"] || req.query["searchmode"] != "startswith"
res.send(505);
} else {
var query = {"descriptions": {"$elemMatch": {"term": {"$regex": ("^" + req.query["query"] + "x*")}, "active": true}}, "active": true};
Expand Down

0 comments on commit 90189e9

Please sign in to comment.