mirror of
https://github.com/makeplane/plane.git
synced 2026-01-27 16:49:09 -06:00
19 lines
459 B
TypeScript
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;
|
|
});
|
|
}
|
|
}
|