// Defaults to a same-origin relative path so the production build works behind
// any domain (the server serves the SPA and the API on the same origin). For
// local dev with separate ports, set VITE_BACKEND_API_URL in frontend/.env.
export const API_BASE_URL =
  import.meta.env.VITE_BACKEND_API_URL || '/api';

export const API_HEADERS = {
  contentType: 'Content-Type',
};

export const API_CONTENT_TYPES = {
  json: 'application/json',
};

export const API_AUTH_PATHS = {
  refresh: '/auth/refresh',
  signIn: '/auth/signin/local',
  signOut: '/auth/signout',
};
