import type { ContactRequest, ContactResponse } from '~/types/api/contact'; import type { MetaResponse } from '~/types/api/meta'; import type { UseApiResponse } from './useApi'; export const useBackend = () => { const api = useApi(); const getMeta = (): UseApiResponse => api.get('/meta'); const postContact = (): UseApiResponse => api.post('/contact', undefined, false); return { getMeta, postContact }; };