All checks were successful
Publish Docker Images / build-and-publish (push) Successful in 10m25s
9 lines
269 B
TypeScript
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 };
|
|
};
|