Skip to content

Commit 0effaac

Browse files
committed
fix API path
1 parent b2c6175 commit 0effaac

2 files changed

Lines changed: 56 additions & 55 deletions

File tree

.idea/workspace.xml

Lines changed: 47 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

data-table/public/js/main.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ async function runQueryByID(query) {
8484
try {
8585
const result = await makeRequest(
8686
'POST',
87-
`/plugins/table/api/runQueryByIDPlugin`,
87+
`api/runQueryByIDPlugin`,
8888
{query, queryParams}
8989
);
9090
setQueryResult(JSON.parse(result.response));
91-
} catch(e) {
91+
} catch (e) {
9292
handleError(e);
9393
}
9494

@@ -186,11 +186,11 @@ async function getSchema() {
186186
try {
187187
const result = await makeRequest(
188188
'GET',
189-
`/plugins/table/api/getSchema?sourceKey=${queryParams.global.sourceKey}`,
189+
`api/getSchema?sourceKey=${queryParams.global.sourceKey}`,
190190
null
191191
);
192192
setSchema(JSON.parse(result.response));
193-
} catch(e) {
193+
} catch (e) {
194194
handleError(e);
195195
}
196196

@@ -200,12 +200,12 @@ async function validatePluginConfiguration() {
200200
try {
201201
const result = await makeRequest(
202202
'POST',
203-
`/plugins/table/api/checkPluginsConfiguration`,
203+
`api/checkPluginsConfiguration`,
204204
{results: schema}
205205
);
206206
pluginConfiguration = JSON.parse(result.response);
207207
return true;
208-
} catch(e) {
208+
} catch (e) {
209209
handleError(e);
210210
}
211211
}
@@ -515,13 +515,13 @@ async function getQuery() {
515515
try {
516516
return await makeRequest(
517517
'POST',
518-
`/plugins/table/api/getQuery`,
518+
`api/getQuery`,
519519
{
520520
id: queryParams.global.queryId,
521521
sourceKey: queryParams.global.sourceKey
522522
}
523523
);
524-
} catch(e) {
524+
} catch (e) {
525525
handleError(e);
526526
}
527527
}
@@ -539,7 +539,7 @@ async function main() {
539539
await runQueryByID(query);
540540
fillDataTable();
541541
}
542-
} catch(e) {
542+
} catch (e) {
543543
handleError(e);
544544
}
545545

0 commit comments

Comments
 (0)