Files
plane/web/core/services/timezone.service.ts
T
Prateek Shourya 2014400bed refactor: move web utils to packages (#7145)
* refactor: move web utils to packages

* fix: build and lint errors

* chore: update drag handle plugin

* chore: update table cell type to fix build errors

* fix: build errors

* chore: sync few changes

* fix: build errors

* chore: minor fixes related to duplicate assets imports

* fix: build errors

* chore: minor changes
2025-06-16 17:18:41 +05:30

24 lines
551 B
TypeScript

import { API_BASE_URL } from "@plane/constants";
import { TTimezones } from "@plane/types";
// helpers
// api services
import { APIService } from "@/services/api.service";
export class TimezoneService extends APIService {
constructor() {
super(API_BASE_URL);
}
async fetch(): Promise<TTimezones> {
return this.get(`/api/timezones/`)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;
});
}
}
const timezoneService = new TimezoneService();
export default timezoneService;