feat: Consolidate version display to use health endpoint.

This commit is contained in:
Elisiário Couto
2025-09-22 18:43:53 +01:00
parent e9924e9d96
commit 76a30d23af
4 changed files with 14 additions and 32 deletions

View File

@@ -10,7 +10,6 @@ import type {
NotificationService,
NotificationServicesResponse,
HealthData,
VersionData,
AccountUpdate,
TransactionStats,
} from "../types/api";
@@ -168,14 +167,7 @@ export const apiClient = {
return response.data.data;
},
// Get version information
getVersion: async (): Promise<VersionData> => {
// Use the root endpoint (/) which provides version information
const response = await api.get<VersionData>("/", {
baseURL: import.meta.env.VITE_API_URL?.replace('/api/v1', '') || '',
});
return response.data;
},
// Analytics endpoints
getTransactionStats: async (days?: number): Promise<TransactionStats> => {