mirror of
https://github.com/Skyai-io/landsat-util.git
synced 2026-03-10 09:01:18 +00:00
Updating the api URL address
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -57,4 +57,5 @@ output
|
||||
.DS_Store
|
||||
.settings
|
||||
metadata.csv
|
||||
node_modules
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user