json-object-editor 0.10.668 → 0.10.671

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,6 +162,9 @@ server.get('/mcp-schemas.html', auth, function(req,res){
162
162
  server.get('/mcp-prompt.html', auth, function(req,res){
163
163
  res.sendFile(path.join(JOE.joedir,'_www','mcp-prompt.html'));
164
164
  });
165
+ server.get('/ai-jobs.html', auth, function(req,res){
166
+ res.sendFile(path.join(JOE.joedir,'_www','ai-jobs.html'));
167
+ });
165
168
  server.get('/matrix.html', auth, function(req,res){
166
169
  res.sendFile(path.join(JOE.joedir,'_www','matrix.html'));
167
170
  });
@@ -296,6 +299,12 @@ server.get(['/API/search/','/API/search/:query'],auth,function(req,res,next){
296
299
  highlight: (req.query.highlight==='true'||req.query.highlight==='1') || undefined
297
300
  };
298
301
  }
302
+ // Extract itemtype/schema from query params and add to queryObj (always, not post-processing)
303
+ if (req.query.itemtype) {
304
+ queryObj.itemtype = req.query.itemtype;
305
+ } else if (req.query.schema) { // legacy alias
306
+ queryObj.itemtype = req.query.schema;
307
+ }
299
308
  var payload = {query:queryObj};
300
309
  payload.results = JOE.Cache.search(queryObj);
301
310
  /*payload.results.map(function(res){