plane/web/services/license.service.ts

17 lines
371 B
TypeScript
Raw Normal View History

2023-10-25 06:28:40 +00:00
// services
import { APIService } from "services/api.service";
export class LicenseService extends APIService {
constructor() {
super("http://localhost:8080");
}
async getProducts(): Promise<any[]> {
return this.get(`/api/products/`)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;
});
}
}