Merge pull request #735 from makeplane/sync/ce-ee

sync: community changes
This commit is contained in:
pushya22
2024-08-01 14:51:53 +05:30
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;