feat(services): añadido registro al servicio para conexión con el back

parent e60d8c1d
Showing with 5 additions and 0 deletions
...@@ -4,5 +4,9 @@ export const authService = { ...@@ -4,5 +4,9 @@ export const authService = {
login: async (credentials) => { login: async (credentials) => {
const response = await api.post('/auth/login', credentials); const response = await api.post('/auth/login', credentials);
return response.data; return response.data;
},
register: async (userData) => {
const response = await api.post('/auth/register', userData);
return response.data;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment