56bb46ffb2
- Have ApiService generate all the api methods specified by the API discovery information - Change all call sites (except for a select few when it does not make sense) to use ApiService
13 lines
No EOL
275 B
JavaScript
13 lines
No EOL
275 B
JavaScript
$.ajax({
|
|
type: 'GET',
|
|
async: false,
|
|
url: '/api/discovery',
|
|
success: function(data) {
|
|
window.__endpoints = data.endpoints;
|
|
},
|
|
error: function() {
|
|
setTimeout(function() {
|
|
$('#couldnotloadModal').modal({});
|
|
}, 250);
|
|
}
|
|
}); |