add: implementar login/registro
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user