Files
phundrak.com/frontend/app/composables/useBackend.ts
Lucien Cartier-Tilet fceeb5307c
All checks were successful
Publish Docker Images / build-and-publish (push) Successful in 10m25s
feat: fill pages
2025-11-12 04:46:21 +01:00

9 lines
269 B
TypeScript

export const useBackend = () => {
const api = useApi();
const getMeta = (options = {}) => api.get('/meta', options);
const postContact = (contact: ContactRequest, options = {}) =>
api.post('/contact', contact, options);
return { getMeta, postContact };
};