Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: url mismatches in space app

sriram veeraghantac89fe9a3139d
diff --git a/space/core/services/cycle.service.ts b/space/core/services/cycle.service.ts
index a556800f8e..6df75ebde1 100644
--- a/space/core/services/cycle.service.ts
+++ b/space/core/services/cycle.service.ts
@@ -8,7 +8,7 @@ export class CycleService extends APIService {
}
async getCycles(anchor: string): Promise<TPublicCycle[]> {
- return this.get(`api/public/anchor/${anchor}/cycles/`)
+ return this.get(`/api/public/anchor/${anchor}/cycles/`)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;
diff --git a/space/core/services/label.service.ts b/space/core/services/label.service.ts
index 086215c0d8..2a2ee5ad97 100644
--- a/space/core/services/label.service.ts
+++ b/space/core/services/label.service.ts
@@ -8,7 +8,7 @@ export class LabelService extends APIService {
}
async getLabels(anchor: string): Promise<IIssueLabel[]> {
- return this.get(`api/public/anchor/${anchor}/labels/`)
+ return this.get(`/api/public/anchor/${anchor}/labels/`)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;
diff --git a/space/core/services/member.service.ts b/space/core/services/member.service.ts
index 1c4758e42f..02cd1f7762 100644
--- a/space/core/services/member.service.ts
+++ b/space/core/services/member.service.ts
@@ -8,7 +8,7 @@ export class MemberService extends APIService {
}
async getAnchorMembers(anchor: string): Promise<TPublicMember[]> {
- return this.get(`api/public/anchor/${anchor}/members/`)
+ return this.get(`/api/public/anchor/${anchor}/members/`)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;
diff --git a/space/core/services/module.service.ts b/space/core/services/module.service.ts
index 153f3f67c4..f89202b6b6 100644
--- a/space/core/services/module.service.ts
+++ b/space/core/services/module.service.ts
@@ -8,7 +8,7 @@ export class ModuleService extends APIService {
}
async getModules(anchor: string): Promise<TPublicModule[]> {
- return this.get(`api/public/anchor/${anchor}/modules/`)
+ return this.get(`/api/public/anchor/${anchor}/modules/`)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;
diff --git a/space/core/services/state.service.ts b/space/core/services/state.service.ts
index e2124675b7..153f965280 100644
--- a/space/core/services/state.service.ts
+++ b/space/core/services/state.service.ts
@@ -8,7 +8,7 @@ export class StateService extends APIService {
}
async getStates(anchor: string): Promise<IState[]> {
- return this.get(`api/public/anchor/${anchor}/states/`)
+ return this.get(`/api/public/anchor/${anchor}/states/`)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;