Ajouter un client

This commit is contained in:
2026-06-11 07:27:37 -04:00
parent c811c373d5
commit ccafc24f72
6 changed files with 102 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
import client from './client';
export function registerCustomer(customer) {
return client.post('/api/customers', customer);
}
export function findCustomerByPhone(phoneNumber) {
return client.get(`/api/customers/phone/${encodeURIComponent(phoneNumber)}`);
}