Skip to content

Commit

Permalink
access to vue wip
Browse files Browse the repository at this point in the history
  • Loading branch information
morinjmit committed Oct 18, 2023
1 parent b65c087 commit 1fa2141
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions static/js/shared.js
Original file line number Diff line number Diff line change
@@ -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' ?
Expand All @@ -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' };
Expand Down

0 comments on commit 1fa2141

Please sign in to comment.