add: implementar login/registro

This commit is contained in:
Alexis
2026-04-06 10:20:27 +02:00
parent e96af43990
commit 22ed6c107e
8 changed files with 257 additions and 406 deletions
+13
View File
@@ -0,0 +1,13 @@
import api from '../lib/api';
export const authService = {
login: async (email, password) => {
const response = await api.post('/auth/login', { email, password });
return response.data;
},
register: async (username, email, password) => {
const response = await api.post('/auth/register', { username, email, password });
return response.data;
}
};