Files
plane/space/core/services/instance.service.ts
sriram veeraghanta fa3aa362a9 fix: lint errors
2024-12-04 17:22:41 +05:30

19 lines
459 B
TypeScript

import { API_BASE_URL } from "@plane/constants";
import type { IInstanceInfo } from "@plane/types";
// services
import { APIService } from "@/services/api.service";
export class InstanceService extends APIService {
constructor() {
super(API_BASE_URL);
}
async getInstanceInfo(): Promise<IInstanceInfo> {
return this.get("/api/instances/")
.then((response) => response.data)
.catch((error) => {
throw error;
});
}
}