updated API request URLs to use keys
This commit is contained in:
parent
8417e692d7
commit
24242d4bf0
2 changed files with 11 additions and 6 deletions
8
public/assets/scripts/dash.min.js
vendored
8
public/assets/scripts/dash.min.js
vendored
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;
|
if (pageNum === null || pageNum === "" || !pageNum) pageNum = 1;
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this._request(
|
this._request(
|
||||||
API_GET_PAGES + "/" + pageNum + "?key=" + key,
|
this.baseURL
|
||||||
|
? this.baseURL + API_GET_PAGES + "?key=" + key
|
||||||
|
: API_GET_PAGES,
|
||||||
TASK_GET_CONTENT,
|
TASK_GET_CONTENT,
|
||||||
REQUEST_TYPE_GET
|
REQUEST_TYPE_GET
|
||||||
)
|
)
|
||||||
|
@ -151,7 +153,10 @@ export default class FipamoAPI {
|
||||||
getPage(id, key) {
|
getPage(id, key) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this._request(
|
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,
|
TASK_GET_CONTENT,
|
||||||
REQUEST_TYPE_GET
|
REQUEST_TYPE_GET
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue