Skip to content

Commit

Permalink
refactor: added auth base url to avoid string duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
madkarmaa committed Jan 28, 2024
1 parent c2b5a66 commit 1f56c83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/constants/endpoints.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 1f56c83

Please sign in to comment.