From 02fd58eacac07d4ec385fbb996a289de1761cd6b Mon Sep 17 00:00:00 2001 From: Scisco Date: Tue, 5 Aug 2014 14:25:06 -0400 Subject: [PATCH] Updating the api URL address --- .gitignore | 1 + api/api.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 52ce8bd..000626f 100644 --- a/.gitignore +++ b/.gitignore @@ -57,4 +57,5 @@ output .DS_Store .settings metadata.csv +node_modules diff --git a/api/api.js b/api/api.js index b7e07cf..da87ee7 100755 --- a/api/api.js +++ b/api/api.js @@ -216,7 +216,7 @@ TrySearch = function(index, params, es_search_params, response) { }; Endpoint = function(noun) { - app.get('/' + noun + '/metadata.json', function(request, response) { + app.get('/' + noun, function(request, response) { LogRequest(request); SetHeaders(response); @@ -225,7 +225,7 @@ Endpoint = function(noun) { return; } - var index = MAIN_INDEX; + var index = noun; var es_search_params = TryToBuildElasticsearchParams(params, index, response); if (es_search_params == null) {