updated API request URLs to use keys

pull/84/head
Ro 3 years ago
parent 8417e692d7
commit 24242d4bf0

File diff suppressed because one or more lines are too long

@ -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
)

Loading…
Cancel
Save