mirror of
https://github.com/elisiariocouto/leggen.git
synced 2025-12-14 01:32:19 +00:00
feat: Consolidate version display to use health endpoint.
This commit is contained in:
@@ -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> => {
|
||||
|
||||
Reference in New Issue
Block a user