From 18fd6db10a16ef511fe47b93590d904938bb566b Mon Sep 17 00:00:00 2001 From: Ilgaz Er Date: Sun, 26 Nov 2023 13:05:39 +0300 Subject: [PATCH] migrated to https --- resq/frontend/src/AppService.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/resq/frontend/src/AppService.js b/resq/frontend/src/AppService.js index eac73846..d7d66d97 100644 --- a/resq/frontend/src/AppService.js +++ b/resq/frontend/src/AppService.js @@ -1,13 +1,14 @@ import axios from 'axios'; -const USER_API_BASE_URL = "http://api.resq.org.tr/resq/api/v1/user"; -const AUTH_API_BASE_URL = "http://api.resq.org.tr/resq/api/v1/auth"; -const ACTION_API_BASE_URL = 'http://api.resq.org.tr/resq/api/v1/action'; -const CATEGORY_API_BASE_URL = 'http://api.resq.org.tr/resq/api/v1/categorytreenode'; -const NEED_API_BASE_URL = 'http://api.resq.org.tr/resq/api/v1/need'; -const REQUEST_API_BASE_URL = 'http://api.resq.org.tr/resq/api/v1/request'; -const RESOURCE_API_BASE_URL = 'http://api.resq.org.tr/resq/api/v1/resource'; -const TASK_API_BASE_URL = 'http://api.resq.org.tr/resq/api/v1/task'; +const API_BASE_URL = 'https://api.resq.org.tr' +const USER_API_BASE_URL = API_BASE_URL + '/resq/api/v1/user'; +const AUTH_API_BASE_URL = API_BASE_URL + '/resq/api/v1/auth'; +const ACTION_API_BASE_URL = API_BASE_URL + '/resq/api/v1/action'; +const CATEGORY_API_BASE_URL = API_BASE_URL + '/resq/api/v1/categorytreenode'; +const NEED_API_BASE_URL = API_BASE_URL + '/resq/api/v1/need'; +const REQUEST_API_BASE_URL = API_BASE_URL + '/resq/api/v1/request'; +const RESOURCE_API_BASE_URL = API_BASE_URL + '/resq/api/v1/resource'; +const TASK_API_BASE_URL = API_BASE_URL + '/resq/api/v1/task'; export function postRequestRole(userId, role) {