Skip to content

Commit

Permalink
Feat: Add '/github' prefix to all endpoints in githubsync.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KBandipo authored and Ifycode committed Dec 3, 2024
1 parent e112225 commit 1ffb265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions @dev-client/views/@plugin_githubsync/githubsync.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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}`);
}
Expand Down

0 comments on commit 1ffb265

Please sign in to comment.