diff options
author | Shravya Ramesh <37447613+shravyaramesh@users.noreply.github.com> | 2020-12-29 11:41:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 14:41:57 -0500 |
commit | 05cd91206a6ce3361097d9eb408a447eae3d120e (patch) | |
tree | 1b8c5ba82358c3f9b393ea42d03b6c9c7219ce7f /src/constants/api.ts | |
parent | efaa41884b5aa4b4704380eb3615d3801958a775 (diff) |
[TMA-288] notifications frontend infra (#154)
* Configured settings to enable remote notifications
* Added FCM services
* Added background message handler + api calls
* minor fixes
* minor changes requested from pr
Diffstat (limited to 'src/constants/api.ts')
-rw-r--r-- | src/constants/api.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/constants/api.ts b/src/constants/api.ts index 890ef102..e1658993 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -1,5 +1,6 @@ // const BASE_URL: string = 'http://3.22.188.127/'; // prod server const BASE_URL: string = 'http://127.0.0.1:8000/'; // local server + const API_URL: string = BASE_URL + 'api/'; export const LOGIN_ENDPOINT: string = API_URL + 'login/'; export const LOGOUT_ENDPOINT: string = API_URL + 'logout/'; @@ -28,6 +29,9 @@ export const BLOCK_USER_ENDPOINT: string = API_URL + 'block/'; export const PASSWORD_RESET_ENDPOINT: string = API_URL + 'password-reset/'; export const MOMENT_CATEGORY_ENDPOINT: string = API_URL + 'moment-category/'; +// Register as FCM device +export const FCM_ENDPOINT: string = API_URL + 'fcm/'; + // Register Social Link (Non-integrated) export const LINK_SNAPCHAT_ENDPOINT: string = API_URL + 'link-sc/'; export const LINK_TIKTOK_ENDPOINT: string = API_URL + 'link-tt/'; |