From 0dc3af215c55b7ddf9fa7861294d9e6cf7350c09 Mon Sep 17 00:00:00 2001 From: havok2063 Date: Fri, 24 Jan 2025 16:14:33 -0500 Subject: [PATCH] adding auth and release info to various api calls --- src/components/ConeSearch.vue | 4 ++-- src/components/ParentCatalog.vue | 8 ++++++-- src/components/ReleaseSelect.vue | 2 +- src/components/Solara.vue | 5 ++++- src/views/Explore.vue | 4 ++-- src/views/Search.vue | 4 +++- src/views/Target.vue | 12 ++++++------ 7 files changed, 24 insertions(+), 15 deletions(-) diff --git a/src/components/ConeSearch.vue b/src/components/ConeSearch.vue index bf77074..dd747cc 100644 --- a/src/components/ConeSearch.vue +++ b/src/components/ConeSearch.vue @@ -104,8 +104,8 @@ async function callApi(ra: string, dec: string, { radius, units }: { radius: num // turn on loading flag loading.value = true; - const endpoint = import.meta.env.VITE_API_URL + `/query/cone?ra=${ra}&dec=${dec}&radius=${radius}&units=${units}` - await axios.get(endpoint) + const endpoint = import.meta.env.VITE_API_URL + `/query/cone?ra=${ra}&dec=${dec}&radius=${radius}&units=${units}&release=${store.release}`; + await axios.get(endpoint, {headers: store.get_auth_hdr()}) .then(response => { // Handle the response data diff --git a/src/components/ParentCatalog.vue b/src/components/ParentCatalog.vue index a3249aa..52c080e 100644 --- a/src/components/ParentCatalog.vue +++ b/src/components/ParentCatalog.vue @@ -92,6 +92,10 @@