Hi
There are different ways to do it.
One way is to load the api defintion with a script tag
and then configure the Direct Manager
Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);
Or when you only have a few ext.direct server methods you can hardcode the definitions
Ext.direct.Manager.addProvider({
"url" : "http://app.domain.com/router",
"type" : "remoting",
"actions" : {
"logService" : [ { "name" : "log", "len" : 1 } ],
"navigationService" : [ {"name" : "getNavigation", "len" : 1} ]
});
In Ext Js 5 and 6 there is another way. With the function loaderProvider
Here is an interesting blog about loading the ext direct api
Ralph