fix: base url standardization

This commit is contained in:
sriram veeraghanta
2025-08-30 22:50:49 +05:30
parent 866eb5ac17
commit 14601d0f36
8 changed files with 18 additions and 16 deletions

View File

@@ -1,4 +1,3 @@
import { API_BASE_URL } from "@plane/constants";
import { TProjectPublishSettings } from "@plane/types"; import { TProjectPublishSettings } from "@plane/types";
import { APIService } from "../api.service"; import { APIService } from "../api.service";
@@ -8,9 +7,9 @@ import { APIService } from "../api.service";
* @extends {APIService} * @extends {APIService}
* @remarks This service is only available for plane core * @remarks This service is only available for plane core
*/ */
export class CoreProjectPublishService extends APIService { export abstract class CoreProjectPublishService extends APIService {
constructor(BASE_URL?: string) { constructor(BASE_URL: string) {
super(BASE_URL || API_BASE_URL); super(BASE_URL);
} }
async retrieve(workspaceSlug: string, projectID: string): Promise<TProjectPublishSettings> { async retrieve(workspaceSlug: string, projectID: string): Promise<TProjectPublishSettings> {

View File

@@ -1,7 +1,7 @@
import { CoreProjectPublishService } from "./core.service"; import { CoreProjectPublishService } from "./core.service";
export class ExtendedProjectPublishService extends CoreProjectPublishService { export abstract class ExtendedProjectPublishService extends CoreProjectPublishService {
constructor() { constructor(baseUrl: string) {
super(); super(baseUrl);
} }
} }

View File

@@ -1,7 +1,8 @@
import { API_BASE_URL } from "@plane/constants";
import { ExtendedProjectPublishService } from "./extended.service"; import { ExtendedProjectPublishService } from "./extended.service";
export class ProjectPublishService extends ExtendedProjectPublishService { export class ProjectPublishService extends ExtendedProjectPublishService {
constructor() { constructor() {
super(); super(API_BASE_URL);
} }
} }

View File

@@ -1,7 +1,7 @@
import { IProjectView } from "@plane/types"; import { IProjectView } from "@plane/types";
import { APIService } from "../api.service"; import { APIService } from "../api.service";
export class ProjectViewService extends APIService { export class CoreProjectViewService extends APIService {
constructor(baseUrl: string) { constructor(baseUrl: string) {
super(baseUrl); super(baseUrl);
} }

View File

@@ -1,6 +1,6 @@
import { ProjectViewService } from "./core.service"; import { CoreProjectViewService } from "./core.service";
export class ExtendedProjectViewService extends ProjectViewService { export class ExtendedProjectViewService extends CoreProjectViewService {
constructor(baseUrl: string) { constructor(baseUrl: string) {
super(baseUrl); super(baseUrl);
} }

View File

@@ -1,7 +1,8 @@
import { API_BASE_URL } from "@plane/constants";
import { ExtendedProjectViewService } from "./extended.service"; import { ExtendedProjectViewService } from "./extended.service";
export class ProjectViewService extends ExtendedProjectViewService { export class ProjectViewService extends ExtendedProjectViewService {
constructor(baseUrl: string) { constructor(baseUrl?: string) {
super(baseUrl); super(baseUrl || API_BASE_URL);
} }
} }

View File

@@ -3,6 +3,6 @@ import { ExtendedProjectService } from "./extended.service";
export class ProjectService extends ExtendedProjectService { export class ProjectService extends ExtendedProjectService {
constructor() { constructor() {
super(API_BASE_URL || ""); super(API_BASE_URL);
} }
} }

View File

@@ -1,7 +1,8 @@
import { API_BASE_URL } from "@plane/constants";
import { ExtendedStateService } from "./extended.service"; import { ExtendedStateService } from "./extended.service";
export class StateService extends ExtendedStateService { export class StateService extends ExtendedStateService {
constructor(baseUrl: string) { constructor() {
super(baseUrl); super(API_BASE_URL);
} }
} }