From 1ffb265958b65b4712824d609734d86338ce875d Mon Sep 17 00:00:00 2001 From: KBandipo~ Date: Tue, 3 Dec 2024 13:03:12 +0100 Subject: [PATCH] Feat: Add '/github' prefix to all endpoints in githubsync.js --- @dev-client/views/@plugin_githubsync/githubsync.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/@dev-client/views/@plugin_githubsync/githubsync.js b/@dev-client/views/@plugin_githubsync/githubsync.js index ae083a7..f739c84 100644 --- a/@dev-client/views/@plugin_githubsync/githubsync.js +++ b/@dev-client/views/@plugin_githubsync/githubsync.js @@ -19,7 +19,7 @@ submitIssueForm.addEventListener('submit', async (e) => { } // eslint-disable-next-line no-undef - const response = await fetch(`${backend_URL}/issues`, { + const response = await fetch(`${backend_URL}/github/issues`, { method: "POST", headers: { "Content-Type": "application/json", @@ -50,7 +50,7 @@ if (response.status === 401){ const fetchTemplates = async () => { try { - const response = await fetch(`${backend_URL}/issue-templates`); + const response = await fetch(`${backend_URL}/github/issue-templates`); if (!response.ok) { throw new Error(`Failed to fetch templates: ${response.statusText}`); }