refactor: modularize API client by splitting resources into individual files and standardizing HTTP request handling.

This commit is contained in:
Jose Selesan
2026-04-20 16:05:37 -03:00
parent 28fd51f926
commit 34cb63364c
11 changed files with 327 additions and 267 deletions

View File

@@ -0,0 +1,7 @@
import type { PlanSummary } from '@repo/api-contract';
import { http } from '../http';
export async function list() {
const response = await http.get<PlanSummary[]>('/api/plans');
return response.data;
}