text: import * as api from './api.js';
  
  const endpoints = {
      LOGIN: '/users/login',
      REGISTER: '/users/register',
      LOGOUT: '/users/logout',
  };
  
  export async function login(email, password) {
      return api.post(endpoints.LOGIN, { email, password });
  }
  
  export async function register(email, password) {
      return api.post(endpoints.REGISTER, { email, password });
  }
  
  export async function logout() {
      return api.get(endpoints.LOGOUT);
  }
  