✨ Ajouter un client
This commit is contained in:
@@ -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)}`);
|
||||
}
|
||||
Reference in New Issue
Block a user