Updating the api URL address

This commit is contained in:
Scisco
2014-08-05 14:25:06 -04:00
parent 1af286be9c
commit 02fd58eaca
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -57,4 +57,5 @@ output
.DS_Store
.settings
metadata.csv
node_modules

View File

@@ -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) {