From 1f56c834ea8504583dd922d84b9c1e6136b60cdf Mon Sep 17 00:00:00 2001 From: MadKarma <100418457+madkarmaa@users.noreply.github.com> Date: Sun, 28 Jan 2024 20:31:48 +0100 Subject: [PATCH] refactor: added auth base url to avoid string duplicates --- src/constants/endpoints.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 5f7d328..e8443d2 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -1,8 +1,9 @@ const BASE_URL = 'https://api-f.streamable.com/api/v1'; +const AUTH_BASE_URL = 'https://ajax.streamable.com'; const endpoints = { - LOGIN: 'https://ajax.streamable.com/check', - SIGNUP: 'https://ajax.streamable.com/users', + LOGIN: AUTH_BASE_URL + '/check', + SIGNUP: AUTH_BASE_URL + '/users', ME: BASE_URL + '/me', SUBSCRIPTION_INFO: BASE_URL + '/me/subscription/info', LABELS: BASE_URL + '/labels',