diff options
| author | Frederick Muriuki Muriithi | 2023-12-05 16:37:45 +0300 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2023-12-05 16:39:03 +0300 |
| commit | 4f4f75fbdbc77dd9b3c87a8a290e2c5a57b57b6a (patch) | |
| tree | 60360fa3d0e9f73b5479f81dd6b25f1940152c23 /wqflask | |
| parent | 15010c02177aa58cb9700f027c9634caee95da18 (diff) | |
| download | genenetwork2-4f4f75fbdbc77dd9b3c87a8a290e2c5a57b57b6a.tar.gz | |
Update URIs to the new GN-AUTH uris
The javascript was still using the GN3 URIs from when auth was done in GN3. This commit updates the code to the new URI paths.
Diffstat (limited to 'wqflask')
3 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/wqflask/static/new/javascript/auth/search_genotypes.js b/wqflask/wqflask/static/new/javascript/auth/search_genotypes.js index 8d571c53..d1b8ed9e 100644 --- a/wqflask/wqflask/static/new/javascript/auth/search_genotypes.js +++ b/wqflask/wqflask/static/new/javascript/auth/search_genotypes.js @@ -14,7 +14,7 @@ function search_genotypes() { selected = JSON.parse(document.getElementById( "tbl-link-genotypes").getAttribute("data-selected-datasets")); species_name = document.getElementById("txt-species-name").value - search_endpoint = "/oauth2/data/genotype/search" + search_endpoint = "/auth/data/genotype/search" search_table = new TableDataSource( "#tbl-genotypes", "data-datasets", search_checkbox); $.ajax( diff --git a/wqflask/wqflask/static/new/javascript/auth/search_mrna.js b/wqflask/wqflask/static/new/javascript/auth/search_mrna.js index 27e7fc0c..3eca4ed2 100644 --- a/wqflask/wqflask/static/new/javascript/auth/search_mrna.js +++ b/wqflask/wqflask/static/new/javascript/auth/search_mrna.js @@ -14,7 +14,7 @@ function search_mrna() { selected = JSON.parse(document.getElementById( "tbl-link").getAttribute("data-datasets")); species_name = document.getElementById("txt-species-name").value - search_endpoint = "/oauth2/data/mrna/search" + search_endpoint = "/auth/data/mrna/search" search_table = new TableDataSource( "#tbl-search", "data-datasets", search_checkbox); $.ajax( diff --git a/wqflask/wqflask/static/new/javascript/auth/search_phenotypes.js b/wqflask/wqflask/static/new/javascript/auth/search_phenotypes.js index 556a7467..99ecb16e 100644 --- a/wqflask/wqflask/static/new/javascript/auth/search_phenotypes.js +++ b/wqflask/wqflask/static/new/javascript/auth/search_phenotypes.js @@ -97,7 +97,7 @@ function display_search_results(data, textStatus, jqXHR) { */ function fetch_search_results(job_id, success, error=default_error_fn) { host = $("#frm-search-traits").attr("data-gn-server-url"); - endpoint = host + "oauth2/data/search/phenotype/" + job_id + endpoint = host + "auth/data/search/phenotype/" + job_id $("#txt-search").prop("disabled", true); $.ajax( endpoint, @@ -119,7 +119,7 @@ function search_phenotypes() { per_page = document.getElementById("txt-per-page").value search_table = new TableDataSource( "#tbl-phenotypes", "data-traits", search_checkbox); - endpoint = "/oauth2/data/phenotype/search" + endpoint = "/auth/data/phenotype/search" $.ajax( endpoint, { |
