From 4f4f75fbdbc77dd9b3c87a8a290e2c5a57b57b6a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 5 Dec 2023 16:37:45 +0300 Subject: 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. --- wqflask/wqflask/static/new/javascript/auth/search_genotypes.js | 2 +- wqflask/wqflask/static/new/javascript/auth/search_mrna.js | 2 +- wqflask/wqflask/static/new/javascript/auth/search_phenotypes.js | 4 ++-- 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, { -- cgit 1.4.1