feat: init
This commit is contained in:
23
apps/web/core/services/app_config.service.ts
Normal file
23
apps/web/core/services/app_config.service.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// services
|
||||
import { API_BASE_URL } from "@plane/constants";
|
||||
import { APIService } from "@/services/api.service";
|
||||
// helper
|
||||
// types
|
||||
// FIXME:
|
||||
// import { TAppConfig } from "@plane/types";
|
||||
|
||||
export class AppConfigService extends APIService {
|
||||
constructor() {
|
||||
super(API_BASE_URL);
|
||||
}
|
||||
|
||||
async envConfig(): Promise<any> {
|
||||
return this.get("/api/configs/", {
|
||||
headers: { "Content-Type": "application/json" },
|
||||
})
|
||||
.then((response) => response.data)
|
||||
.catch((error) => {
|
||||
throw error?.response?.data;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user