You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some existing Rest APIs that provide some information and I want to integrate Allcountjs with my APIs, how can I call it from inside an AllcountJS app?
The text was updated successfully, but these errors were encountered:
I solved this with hack:
First, I added into node_modules/allcountjs/core/index.js few lines:
//In the beginning
var request = require('request');
...
function configure() {
....
injection.bindFactory('Request', function () {
return request;
});
Then, in configuration file:
beforeSave: function (Entity, Crud, Console, ValidationError, Request) {
return new Promise(resolv => {
Request.get('http://127.0.0.1:5555', x => {
resolv();
})
})
I have some existing Rest APIs that provide some information and I want to integrate Allcountjs with my APIs, how can I call it from inside an AllcountJS app?
The text was updated successfully, but these errors were encountered: