updated API request URLs to use keys

This commit is contained in:
Ro 2021-06-14 13:16:23 -07:00
parent 8417e692d7
commit 24242d4bf0
2 changed files with 11 additions and 6 deletions

File diff suppressed because one or more lines are too long

View file

@ -135,7 +135,9 @@ export default class FipamoAPI {
if (pageNum === null || pageNum === "" || !pageNum) pageNum = 1;
return new Promise((resolve, reject) => {
this._request(
API_GET_PAGES + "/" + pageNum + "?key=" + key,
this.baseURL
? this.baseURL + API_GET_PAGES + "?key=" + key
: API_GET_PAGES,
TASK_GET_CONTENT,
REQUEST_TYPE_GET
)
@ -151,7 +153,10 @@ export default class FipamoAPI {
getPage(id, key) {
return new Promise((resolve, reject) => {
this._request(
API_GET_PAGE + "/" + id + "?key=" + key,
//API_GET_PAGE + "/" + id + "?key=" + key,
this.baseURL
? this.baseURL + API_GET_PAGE + "/" + id + "?key=" + key
: API_GET_PAGE,
TASK_GET_CONTENT,
REQUEST_TYPE_GET
)