import Route from "Common/Types/API/Route";
import URL from "Common/Types/API/URL";
import { IDENTITY_URL, APP_API_URL } from "Common/UI/Config";

export const SIGNUP_API_URL: URL = URL.fromURL(IDENTITY_URL).addRoute(
  new Route("/signup"),
);
export const LOGIN_API_URL: URL = URL.fromURL(IDENTITY_URL).addRoute(
  new Route("/login"),
);

export const VERIFY_TOTP_AUTH_API_URL: URL = URL.fromURL(IDENTITY_URL).addRoute(
  new Route("/verify-totp-auth"),
);

export const GENERATE_WEBAUTHN_AUTH_OPTIONS_API_URL: URL = URL.fromURL(
  APP_API_URL,
).addRoute(new Route("/user-webauthn/generate-authentication-options"));

export const VERIFY_WEBAUTHN_AUTH_API_URL: URL = URL.fromURL(
  IDENTITY_URL,
).addRoute(new Route("/verify-webauthn-auth"));

export const SERVICE_PROVIDER_LOGIN_URL: URL = URL.fromURL(
  IDENTITY_URL,
).addRoute(new Route("/service-provider-login"));

export const FORGOT_PASSWORD_API_URL: URL = URL.fromURL(IDENTITY_URL).addRoute(
  new Route("/forgot-password"),
);

export const VERIFY_EMAIL_API_URL: URL = URL.fromURL(IDENTITY_URL).addRoute(
  new Route("/verify-email"),
);

export const RESET_PASSWORD_API_URL: URL = URL.fromURL(IDENTITY_URL).addRoute(
  new Route("/reset-password"),
);
