11 lines
286 B
TypeScript
11 lines
286 B
TypeScript
import api from './api';
|
|
import type { HealthResponse } from '../types';
|
|
|
|
export type { HealthResponse };
|
|
|
|
// GET /api/health
|
|
export const fetchHealthStatus = async (): Promise<HealthResponse> => {
|
|
const response = await api.get<HealthResponse>('/health');
|
|
return response.data;
|
|
};
|