From 1fa21410ac3419fba9ae5b988cb9ae5f5b774c7e Mon Sep 17 00:00:00 2001 From: Joey Morin Date: Wed, 18 Oct 2023 16:24:18 -0600 Subject: [PATCH] access to vue wip --- plugins/access | 2 +- static/js/shared.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/access b/plugins/access index 0e677767b..fff4c2018 160000 --- a/plugins/access +++ b/plugins/access @@ -1 +1 @@ -Subproject commit 0e677767bf0b841a3b79e091314d5d9051501d16 +Subproject commit fff4c20183cb92862db048f03232f717f43a8282 diff --git a/static/js/shared.js b/static/js/shared.js index d8ef4591e..1549d675a 100644 --- a/static/js/shared.js +++ b/static/js/shared.js @@ -1,7 +1,7 @@ /* eslint-disable */ /* HELPFUL functions to call */ -function restRequest(requestType, data, callback = (r) => { +export function restRequest(requestType, data, callback = (r) => { console.log('Fetch Success', r); }, endpoint = '/api/rest') { const requestData = requestType === 'GET' ? @@ -25,7 +25,7 @@ function restRequest(requestType, data, callback = (r) => { .catch((error) => console.error(error)); } -function apiV2(requestType, endpoint, body = null, jsonRequest = true) { +export function apiV2(requestType, endpoint, body = null, jsonRequest = true) { let requestBody = { method: requestType }; if (jsonRequest) { requestBody.headers = { 'Content-Type': 'application/json' };